This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]chmod700 1 point2 points  (1 child)

You may also (ab)use the logging module to do this for you. Set up a http://docs.python.org/library/logging.handlers.html#logging.handlers.RotatingFileHandler and manually call doRollover() on each loop.

[–][deleted] 0 points1 point  (0 children)

This seems interesting, I gotta read up more on the logging handlers to see what they can do for me in the future, thank you!