logger doesn't roll over

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


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("")
	handler = logging.handlers.RotatingFileHandler(
		LOGFILE, maxBytes=(1048576*10), backupCount=5

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

More information about the Python-list mailing list