Control Log File Size

Robert Rawlins - Think Blue robert.rawlins at thinkbluemedia.co.uk
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,

 

Rob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20071019/b0df26a1/attachment.html>


More information about the Python-list mailing list