summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2008-07-18 09:00:35 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2008-07-18 09:00:35 (GMT)
commit2a649f93b055e21c474654aa98005cbea30722cb (patch)
tree7ff896b5bf8c8c3f4e7233a019d3b23bcf88888a /Doc/library
parent70fdc95b96d1a756b214867339c0475211d0d6d6 (diff)
downloadcpython-2a649f93b055e21c474654aa98005cbea30722cb.zip
cpython-2a649f93b055e21c474654aa98005cbea30722cb.tar.gz
cpython-2a649f93b055e21c474654aa98005cbea30722cb.tar.bz2
Issue #3389: Allow resolving dotted names for handlers in logging configuration files. Thanks to Philip Jenvey for the patch.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/logging.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 37f5b55..4b33004 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -1674,7 +1674,7 @@ 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.
+ rollover interval.
If the *utc* argument is true, times in UTC will be used; otherwise
local time is used.
@@ -2351,6 +2351,10 @@ The ``class`` entry indicates the handler's class (as determined by :func:`eval`
in the ``logging`` package's namespace). The ``level`` is interpreted as for
loggers, and ``NOTSET`` is taken to mean "log everything".
+.. versionchanged:: 2.6
+ Added support for resolving the handler's class as a dotted module and class
+ name.
+
The ``formatter`` entry indicates the key name of the formatter for this
handler. If blank, a default formatter (``logging._defaultFormatter``) is used.
If a name is specified, it must appear in the ``[formatters]`` section and have