SyntaxFix
Write A Post
Hire A Developer
Questions
For 2.7, try the following:
fh = logging.handlers.RotatingFileHandler(LOGFILE, maxBytes=(1048576*5), backupCount=7)