Logging help

Chris Rebert clp2 at rebertia.com
Tue Jan 20 01:45:17 CET 2009

On Mon, Jan 19, 2009 at 11:36 AM, koranthala <koranthala at gmail.com> wrote:
> Hi,
>   Is it possible somehow to have the logging module rotate the files
> every time I start it.
>   Basically, I can automatically rotate using RotatingFileHandler;
> Now I want it rotated every time I start the program too.

Just call the .doRollover() method of the RotatingFileHandler at the
start of the program.
Reading The Fine Documentation for the module is helpful.


Follow the path of the Iguana...

More information about the Python-list mailing list