Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d063049

Browse files
committed
Closed #26533: Merged update from 3.5.
2 parents eb5b647 + 3d639b2 commit d063049

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

Doc/library/logging.config.rst

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ in :mod:`logging` itself) and defining handlers which are declared either in
126126
Starts up a socket server on the specified port, and listens for new
127127
configurations. If no port is specified, the module's default
128128
:const:`DEFAULT_LOGGING_CONFIG_PORT` is used. Logging configurations will be
129-
sent as a file suitable for processing by :func:`fileConfig`. Returns a
130-
:class:`~threading.Thread` instance on which you can call
131-
:meth:`~threading.Thread.start` to start the server, and which you can
132-
:meth:`~threading.Thread.join` when appropriate. To stop the server,
129+
sent as a file suitable for processing by :func:`dictConfig` or
130+
:func:`fileConfig`. Returns a :class:`~threading.Thread` instance on which
131+
you can call :meth:`~threading.Thread.start` to start the server, and which
132+
you can :meth:`~threading.Thread.join` when appropriate. To stop the server,
133133
call :func:`stopListening`.
134134

135135
The ``verify`` argument, if specified, should be a callable which should
@@ -165,9 +165,18 @@ in :mod:`logging` itself) and defining handlers which are declared either in
165165
``verify`` argument to :func:`listen` to prevent unrecognised
166166
configurations from being applied.
167167

168-
.. versionchanged:: 3.4.
168+
.. versionchanged:: 3.4
169169
The ``verify`` argument was added.
170170

171+
.. note::
172+
173+
If you want to send configurations to the listener which don't
174+
disable existing loggers, you will need to use a JSON format for
175+
the configuration, which will use :func:`dictConfig` for configuration.
176+
This method allows you to specify ``disable_existing_loggers`` as
177+
``False`` in the configuration you send.
178+
179+
171180
.. function:: stopListening()
172181

173182
Stops the listening server which was created with a call to :func:`listen`.

0 commit comments

Comments
 (0)