(original) (raw)
changeset: 82550:83f07e3a53f4 branch: 3.2 parent: 82544:76be5efa0d86 user: Vinay Sajip <vinay_sajip@yahoo.co.uk> date: Fri Mar 08 23:24:30 2013 +0000 files: Doc/library/logging.handlers.rst description: Issue #17376: Clarified documentation for TimedRotatingFileHandler weekday rotation. diff -r 76be5efa0d86 -r 83f07e3a53f4 Doc/library/logging.handlers.rst --- a/Doc/library/logging.handlers.rst Fri Mar 08 05:31:54 2013 -0800 +++ b/Doc/library/logging.handlers.rst Fri Mar 08 23:24:30 2013 +0000 @@ -236,11 +236,15 @@ +----------------+-----------------------+ | ``'D'`` | Days | +----------------+-----------------------+ - | ``'W'`` | Week day (0=Monday) | + | ``'W0'-'W6'`` | Weekday (0=Monday) | +----------------+-----------------------+ | ``'midnight'`` | Roll over at midnight | +----------------+-----------------------+ + When using weekday-based rotation, specify 'W0' for Monday, 'W1' for + Tuesday, and so on up to 'W6' for Sunday. In this case, the value passed for + *interval* isn't used. + The system will save old log files by appending extensions to the filename. The extensions are date-and-time based, using the strftime format ``%Y-%m-%d_%H-%M-%S`` or a leading portion thereof, depending on the </vinay_sajip@yahoo.co.uk>