small inaccuracy in the logging module documentation (Python Library Reference)

Petr Jakeš petr.jakes at tpc.cz
Thu Jun 29 15:33:01 EDT 2006


Hi,

I have found some inaccuracy in the Python Library Reference
6.29.5.4 TimedRotatingFileHandler
(http://docs.python.org/lib/node349.html)

1)
it is not really obvious from the documentation the "when" value has
to be in the format "w0", "w1" ... "w6" if "Type of interval" is
defined as a "week day"

2)
next the documentation  says:
"If backupCount is non-zero, the system will save old log files by
appending the extensions ".1", ".2" etc., to the filename"

This is not really true, in this case.
The extension is (depending on the "when" value): "timestamp" or
"date+hour+minutes" or "date+hours" or "date".

Regards
Petr Jakes




More information about the Python-list mailing list