mirror of
https://github.com/python/cpython.git
synced 2025-09-21 08:00:37 +00:00
Issue #3389: Allow resolving dotted names for handlers in logging configuration files. Thanks to Philip Jenvey for the patch.
This commit is contained in:
parent
70fdc95b96
commit
2a649f93b0
1 changed files with 5 additions and 1 deletions
|
@ -1674,7 +1674,7 @@ timed intervals.
|
||||||
The system will save old log files by appending extensions to the filename.
|
The system will save old log files by appending extensions to the filename.
|
||||||
The extensions are date-and-time based, using the strftime format
|
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
|
``%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
|
If the *utc* argument is true, times in UTC will be used; otherwise
|
||||||
local time is used.
|
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
|
in the ``logging`` package's namespace). The ``level`` is interpreted as for
|
||||||
loggers, and ``NOTSET`` is taken to mean "log everything".
|
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
|
The ``formatter`` entry indicates the key name of the formatter for this
|
||||||
handler. If blank, a default formatter (``logging._defaultFormatter``) is used.
|
handler. If blank, a default formatter (``logging._defaultFormatter``) is used.
|
||||||
If a name is specified, it must appear in the ``[formatters]`` section and have
|
If a name is specified, it must appear in the ``[formatters]`` section and have
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue