logger doesn't roll over

cerr ron.eggler at gmail.com
Wed Nov 21 20:26:51 CET 2012


Hi,

I'm using Python's logger for logging but it doesn't seem to roll over, my file is now 2.2MB and should've rolled over after ever 1MB.
My code:
logger = logging.getLogger("")
	logger.setLevel(logging.DEBUG)
	handler = logging.handlers.RotatingFileHandler(
		LOGFILE, maxBytes=(1048576*10), backupCount=5
	)

What am I doing wrong here, I don't get it.
Thank you!
Ron


More information about the Python-list mailing list