logging.handlers.RotatingFileHandler.shouldRollover

RotatingFileHandler.shouldRollover(record)[source]

Determine if rollover should occur.

Basically, see if the supplied record would cause the file to exceed the size limit we have.