summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2013-03-08 23:24:30 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2013-03-08 23:24:30 (GMT)
commit832d99bdbbf321f1cff4aa2bb8d53b925ca7ab0e (patch)
treec016acd1fded37f3ca29ae11a20b202e67b12d85 /Doc
parentf81de8df0aca07531087b56227b730889114c524 (diff)
downloadcpython-832d99bdbbf321f1cff4aa2bb8d53b925ca7ab0e.zip
cpython-832d99bdbbf321f1cff4aa2bb8d53b925ca7ab0e.tar.gz
cpython-832d99bdbbf321f1cff4aa2bb8d53b925ca7ab0e.tar.bz2
Issue #17376: Clarified documentation for TimedRotatingFileHandler weekday rotation.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/logging.handlers.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/logging.handlers.rst b/Doc/library/logging.handlers.rst
index ef65cfa..ba7cd00 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