[Python-Dev] new module proposal: logfile (original) (raw)
Guido van Rossum guido at python.org
Thu Dec 11 18:09:23 EST 2003
- Previous message: [Python-Dev] new module proposal: logfile
- Next message: [Python-Dev] new module proposal: logfile
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Attached is a module that implements a self-rotating log file object. You simply write to it perpetually, and if it grows over a specified size it is automatically truncated, and a certain number of archived copies are kept as well.
The logging module also supports this.
It also has an object that allows redirecting your stdio to a log file. Useful for daemon processes.
I'd be more impressed if it was integrated with the loggingmodule.
--Guido van Rossum (home page: http://www.python.org/~guido/)
- Previous message: [Python-Dev] new module proposal: logfile
- Next message: [Python-Dev] new module proposal: logfile
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]