Log file rollover... FileHandler's numbering convention

A

Allan Cady

I'm currently using the FileHandler class to implement log file
rollover. It's inconvenient for me that it uses a scheme of renaming
all of the log files every time it rolls over... e.g. log005 ->
log006, log004 -> log005, etc., such that the newest file is always
numbered zero. I would prefer if it would leave the old files alone,
and start a new file with a new name, so that the newest file has the
highest number.

As far as I can tell, this is not possible with FileHandler. Can
anyone recommend a way that I can do what I want, without having to
rewrite FileHandler?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top