Re: [Tutor] problem with a simple logger with RotatingFileHandler
2009/4/14 Daniel : > 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
[Tutor] problem with a simple logger with RotatingFileHandler
hi list, I write a simple logger, which follows the example on http://docs.python.org/library/logging.html, as this: def get_logger(log_filename): my_logger = logging.getLogger("MyLogger") my_logger.setLevel(logging.debug) handler = logging.handlers.RotatingFileHandler(log_filename, m