Efficient way of looging in python

Roozbeh roozbeh73 at gmail.com
Thu Apr 25 10:04:03 EDT 2013


You can also add several handlers to your logger with different levels, so that one Filehandler passes the errors to a log file and StreamHandler passes messages with a different level to the output stream.
Also by setting the basicConfig of the logger you can format the log messages so that you would see where the messages are originating from.



More information about the Python-list mailing list