Control Log File Size

Robert Rawlins - Think Blue robert.rawlins at
Fri Oct 19 16:00:39 CEST 2007

Hello Chaps,


I've got an application running on linux which writes log files using the
python logging module. I'm looking for some help and advice to cap the size
which the file will grow too, something reasonably like 2Mb would be great.


What is the best way to handle this kind of thing? Can this be done using a
setting in the logging module? Or is it something I'll have to get the FS to
handle for me?


Thanks chaps,



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list