summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2013-03-08 23:27:24 +0000
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2013-03-08 23:27:24 +0000
commitd12ff7b754023ea26786dd8de78b56de031f749c (patch)
treeac292d82862dd399364ac522e68d2d0c954b62cf
parent5589850c14f8b56c995a4949b738ac94cd15e11b (diff)
parent355a9876e572992239987e7b5568b84fba4a0084 (diff)
downloadcpython-git-d12ff7b754023ea26786dd8de78b56de031f749c.tar.gz
Closes #17376: Merged clarification from 3.3.
-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 537b8c7b56..30f9e03a64 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