0
How to log to text file and then print it's contents
I want to log to a file then read/print that log https://code.sololearn.com/cdvCSvQTe9TP/?ref=app
7 odpowiedzi
+ 1
David Nierman I've corrected your code:
https://code.sololearn.com/c83i2Da2NxkA/?ref=app
+ 1
David Nierman the same error. For WARNING level you should use level=logging.WARNING (in UPPER CASE!)
+ 1
David Nierman Set level=logging.DEBUG and it will do.
https://code.sololearn.com/cz4sQrvsGtXv/?ref=app
0
David Nierman You have an error in level=logging.info. Use level=logging.INFO instead.
0
portpass I changed it, but now receiving int object not callable error
0
Figures it out. Debug() and info() do not get logged because the module only logs messages with severity level warning or above
0
Ahh perfect thank you portpass