TimedRotatingFileHandler() isn't rotating at midnight?

Vinay Sajip vinay_sajip at yahoo.co.uk
Fri Feb 23 06:15:29 EST 2007


On 9 Feb, 14:14, s... at pobox.com wrote:
> Right.  Check out the logrotate facility on your system.

This can be used together with the WatchedFileHandler recently checked
into SVN trunk - this (Unix/Linux-only) handler checks to see if the
dev or inode have changed, and if they have (because of rotation by
e.g. logrotate), reopens the file before writing to it.

Regards,

Vinay Sajip




More information about the Python-list mailing list