[Python-Dev] PEP 282 Implementation

Guido van Rossum guido@python.org
Tue, 24 Sep 2002 08:10:21 -0400


> It would be helpful for the FileHandler class to define a method
> which just closes and reopens the current logfile (instead of
> actually rotating a set like-named logfiles).  This would allow
> logfile rotation to be performed by a separate process (e.g.
> RedHat's logrotate).  Sometimes it's better (and even necessary) to
> be able to use system-provided log rotation facilities instead of
> relying on the native rotation facilities.

Maybe this could be a different Handler subclass?

I have to admit that I find log rotation borderline functionality for
the logging module.  Perhaps Chris' suggestion is sufficient.

--Guido van Rossum (home page: http://www.python.org/~guido/)