Python logging rollover

Kottiyath n.kottiyath at gmail.com
Mon Jan 12 06:52:46 EST 2009


Hi,

I want to do a log rollover - preferably based on day; size is also
Ok.
I checked logging.TimedRotatingFileHandler, but I am not sure whether
it will suit my purpose.
Mine is a desktop application. So, everytime the machine starts, the
whole logging system is reinitialized.
So, in such a case, can I use TimedRotatingFileHandler? I tested it
with 'midnight' option, but it did not work as I expected.

Regards
K



More information about the Python-list mailing list