[Python-Dev] logging and rotation
Oleg Broytman
phd at phdru.name
Sun Nov 25 18:02:12 CET 2012
On Sun, Nov 25, 2012 at 01:14:11PM +0100, Matthias Bernt <MatatTHC at gmx.de> wrote:
> I'm using the logging module and write my log messages via the FileHandler.
> I just realized that using an external log rotation mechanism does not
> work. That is, new messages are not added to the file after
> rotation.
An external log rotation mechanism ought to send a signal to the
application and the application ought to close and reopen logs. That is,
this is an application-level problem, not logging module-level.
Oleg.
--
Oleg Broytman http://phdru.name/ phd at phdru.name
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-Dev
mailing list