summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2010-03-12 09:16:10 +0000
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2010-03-12 09:16:10 +0000
commitecfa08fdf8de5fc72d9dd891b9a6c443bdee897d (patch)
tree11e6418fa17af59ae43e9c3b54795d4e919dbcdf
parent9098ee43607340769d1dddf88522cc1bf9b1788f (diff)
downloadcpython-git-ecfa08fdf8de5fc72d9dd891b9a6c443bdee897d.tar.gz
Issue #8117: Updated NEWS entry and added to logging documentation.
-rw-r--r--Doc/library/logging.rst5
-rw-r--r--Misc/NEWS5
2 files changed, 9 insertions, 1 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index d9824fdaf2..3d2eeef9ec 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -1894,6 +1894,11 @@ timed intervals.
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.
+
+ When computing the next rollover time for the first time (when the handler
+ is created), the last modification time of an existing log file, or else
+ the current time, is used to compute when the next rotation will occur.
+
If the *utc* argument is true, times in UTC will be used; otherwise
local time is used.
diff --git a/Misc/NEWS b/Misc/NEWS
index c74eff18a2..0cbcf2dc09 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -24,7 +24,10 @@ Core and Builtins
Library
-------
-- Issue #8117: logging: Improved algorithm for computing initial rollover time.
+- Issue #8117: logging: Improved algorithm for computing initial rollover time
+ for TimedRotatingFileHandler by using the modification time of an existing
+ log file to compute the next rollover time. If the log file does not exist,
+ the current time is used as the basis for the computation.
- Issue #6472: The xml.etree package is updated to ElementTree 1.3. The
cElementTree module is updated too.