Commit 756606eb authored by Vinay Sajip's avatar Vinay Sajip

Updated documentation for TimedRotatingFileHandler relating to how rollover...

Updated documentation for TimedRotatingFileHandler relating to how rollover files are named. The previous documentation was wrongly the same as for RotatingFileHandler.
parent 5f455b98
...@@ -1068,13 +1068,11 @@ list of possible values is, note that they are not case sensitive: ...@@ -1068,13 +1068,11 @@ list of possible values is, note that they are not case sensitive:
\end{tableii} \end{tableii}
If \var{backupCount} is non-zero, the system will save old log files by 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, appending extensions to the filename. The extensions are date-and-time
with a \var{backupCount} of 5 and a base file name of \file{app.log}, based, using the strftime format \code{%Y-%m-%d_%H-%M-%S} or a leading
you would get \file{app.log}, \file{app.log.1}, \file{app.log.2}, up to portion thereof, depending on the rollover interval. At most \var{backupCount}
\file{app.log.5}. The file being written to is always \file{app.log}. files will be kept, and if more would be created when rollover occurs, the
When this file is filled, it is closed and renamed to \file{app.log.1}, oldest one is deleted.
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.
\end{classdesc} \end{classdesc}
\begin{methoddesc}{doRollover}{} \begin{methoddesc}{doRollover}{}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment