Issue #17376: Clarified documentation for TimedRotatingFileHandler weekday rotation.
This commit is contained in:
parent
e754636a5e
commit
a7b584b68c
|
@ -236,11 +236,15 @@ timed intervals.
|
||||||
+----------------+-----------------------+
|
+----------------+-----------------------+
|
||||||
| ``'D'`` | Days |
|
| ``'D'`` | Days |
|
||||||
+----------------+-----------------------+
|
+----------------+-----------------------+
|
||||||
| ``'W'`` | Week day (0=Monday) |
|
| ``'W0'-'W6'`` | Weekday (0=Monday) |
|
||||||
+----------------+-----------------------+
|
+----------------+-----------------------+
|
||||||
| ``'midnight'`` | Roll over at midnight |
|
| ``'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 system will save old log files by appending extensions to the filename.
|
||||||
The extensions are date-and-time based, using the strftime format
|
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
|
``%Y-%m-%d_%H-%M-%S`` or a leading portion thereof, depending on the
|
||||||
|
|
Loading…
Reference in New Issue