diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-03-08 23:27:24 +0000 |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-03-08 23:27:24 +0000 |
commit | d12ff7b754023ea26786dd8de78b56de031f749c (patch) | |
tree | ac292d82862dd399364ac522e68d2d0c954b62cf | |
parent | 5589850c14f8b56c995a4949b738ac94cd15e11b (diff) | |
parent | 355a9876e572992239987e7b5568b84fba4a0084 (diff) | |
download | cpython-git-d12ff7b754023ea26786dd8de78b56de031f749c.tar.gz |
Closes #17376: Merged clarification from 3.3.
-rw-r--r-- | Doc/library/logging.handlers.rst | 6 |
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 |