From: Vinay Sajip Date: Fri, 8 Mar 2013 23:24:30 +0000 (+0000) Subject: Issue #17376: Clarified documentation for TimedRotatingFileHandler weekday rotation. X-Git-Tag: v3.2.4rc1~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=832d99bdbbf321f1cff4aa2bb8d53b925ca7ab0e;p=thirdparty%2FPython%2Fcpython.git Issue #17376: Clarified documentation for TimedRotatingFileHandler weekday rotation. --- diff --git a/Doc/library/logging.handlers.rst b/Doc/library/logging.handlers.rst index ef65cfa55945..ba7cd00b0c1d 100644 --- a/Doc/library/logging.handlers.rst +++ b/Doc/library/logging.handlers.rst @@ -236,11 +236,15 @@ timed intervals. +----------------+-----------------------+ | ``'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