diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2008-04-02 21:17:25 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2008-04-02 21:17:25 (GMT) |
commit | 89a01cd44bd2fc04e63a1ce3d60d8153e671ddde (patch) | |
tree | 1afccac491b5e452ab8b1e8957aee25d1ca0be65 /Doc/library | |
parent | b7edfc4e179d52274821c2f79213d5b6f70ab44a (diff) | |
download | cpython-89a01cd44bd2fc04e63a1ce3d60d8153e671ddde.zip cpython-89a01cd44bd2fc04e63a1ce3d60d8153e671ddde.tar.gz cpython-89a01cd44bd2fc04e63a1ce3d60d8153e671ddde.tar.bz2 |
Added updates with respect to recent changes to TimedRotatingFileHandler.
Diffstat (limited to 'Doc/library')
-rw-r--r-- | Doc/library/logging.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 44979f8..775aef4 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -1670,10 +1670,11 @@ timed intervals. 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 rollover - interval. If *backupCount* is nonzero, at most *backupCount* files will be - kept, and if more would be created when rollover occurs, the oldest one is - deleted. + ``%Y-%m-%d_%H-%M-%S`` or a leading portion thereof, depending on the + rollover interval. If *backupCount* is nonzero, at most *backupCount* files + will be kept, and if more would be created when rollover occurs, the oldest + one is deleted. The deletion logic uses the interval to determine which + files to delete, so changing the interval may leave old files lying around. .. method:: TimedRotatingFileHandler.doRollover() |