[Tutor] problem with a simple logger with RotatingFileHandler

Sander Sweers sander.sweers at gmail.com
Tue Apr 14 11:55:39 CEST 2009


2009/4/14 Daniel <daniel.chaowang at gmail.com>:
> def get_logger(log_filename):
>     my_logger = logging.getLogger("MyLogger")
>     my_logger.setLevel(logging.debug)
                                               ^^^^^^^
You have a small typo. This should be in capitals, logging.DEBUG.

Greets
Sander


More information about the Tutor mailing list