[Tutor] Python logging

Kent Johnson kent37 at tds.net
Mon Apr 20 03:11:22 CEST 2009


On Sun, Apr 19, 2009 at 3:18 PM, Scott SA <pydev at rscorp.ab.ca> wrote:
> I guess I should really find the actual code and read what
> it is doing... as Kent very gently prodded me with.

It's in the Lib directory of your Python installation.

> I did go through a few
> PEPs too, and I don't recall seeing anything about time-based rotation ...
> but then maybe it was there and it didn't register with me.

See TimedRotatingFileHandler.
http://docs.python.org/library/logging.html#timedrotatingfilehandler

Kent


More information about the Tutor mailing list