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.