diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2006-07-20 16:28:39 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2006-07-20 16:28:39 (GMT) |
commit | 9325ba6df485f40b1dad398d99186b53b93e95bf (patch) | |
tree | bf46dd981de4374511c12d31770b43c70c5c77cf /Doc/lib/liblogging.tex | |
parent | 13cf38c0cf86c2a8e5585d214d0b7fc85119bd7f (diff) | |
download | cpython-9325ba6df485f40b1dad398d99186b53b93e95bf.zip cpython-9325ba6df485f40b1dad398d99186b53b93e95bf.tar.gz cpython-9325ba6df485f40b1dad398d99186b53b93e95bf.tar.bz2 |
Updated documentation for TimedRotatingFileHandler relating to how rollover files are named. The previous documentation was wrongly the same as for RotatingFileHandler.
Diffstat (limited to 'Doc/lib/liblogging.tex')
-rw-r--r-- | Doc/lib/liblogging.tex | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Doc/lib/liblogging.tex b/Doc/lib/liblogging.tex index 576e2e7..f297557 100644 --- a/Doc/lib/liblogging.tex +++ b/Doc/lib/liblogging.tex @@ -1068,13 +1068,11 @@ list of possible values is, note that they are not case sensitive: \end{tableii} If \var{backupCount} is non-zero, the system will save old log files by -appending the extensions ".1", ".2" etc., to the filename. For example, -with a \var{backupCount} of 5 and a base file name of \file{app.log}, -you would get \file{app.log}, \file{app.log.1}, \file{app.log.2}, up to -\file{app.log.5}. The file being written to is always \file{app.log}. -When this file is filled, it is closed and renamed to \file{app.log.1}, -and if files \file{app.log.1}, \file{app.log.2}, etc. exist, then they -are renamed to \file{app.log.2}, \file{app.log.3} etc. respectively. +appending extensions to the filename. The extensions are date-and-time +based, using the strftime format \code{%Y-%m-%d_%H-%M-%S} or a leading +portion thereof, depending on the rollover interval. At most \var{backupCount} +files will be kept, and if more would be created when rollover occurs, the +oldest one is deleted. \end{classdesc} \begin{methoddesc}{doRollover}{} |