Re: Python logging rollover

2009-01-12 Thread Scott David Daniels

Kottiyath wrote:

Hi,

I want to do a log rollover   I tested it with 'midnight' option,
but it did not work as I expected.

Please google "smart questions".
All I can conclude from your message is that your expectations are
wrong.  It is not enough to tell us you are confused.  You need to
show us enough so that we can discover what might, or might not, be
going wrong.  At the least, what was your code, what happened, and
what did you expect to happen.

--Scott David Daniels
scott.dani...@acm.org
--
http://mail.python.org/mailman/listinfo/python-list


Python logging rollover

2009-01-12 Thread Kottiyath
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
--
http://mail.python.org/mailman/listinfo/python-list