summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2013-03-08 23:26:43 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2013-03-08 23:26:43 (GMT)
commit355a9876e572992239987e7b5568b84fba4a0084 (patch)
tree0a768609f4f73a6c0c05c3dece7f73821b7e5664 /Doc
parentf0d8697e546a46ca1ba9199e093c94be6d7de879 (diff)
parent832d99bdbbf321f1cff4aa2bb8d53b925ca7ab0e (diff)
downloadcpython-355a9876e572992239987e7b5568b84fba4a0084.zip
cpython-355a9876e572992239987e7b5568b84fba4a0084.tar.gz
cpython-355a9876e572992239987e7b5568b84fba4a0084.tar.bz2
Issue #17376: Merged clarification from 3.2.
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 537b8c7..30f9e03 100644
--- a/Doc/library/logging.handlers.rst
+++ b/Doc/library/logging.handlers.rst
@@ -317,11 +317,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