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

Skip to content

Commit 64e564b

Browse files
committed
Merged documentation fix from 3.2.
2 parents ff1a735 + f97255f commit 64e564b

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

Doc/library/logging.config.rst

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,25 @@ in :mod:`logging` itself) and defining handlers which are declared either in
7474

7575
.. versionadded:: 3.2
7676

77-
.. function:: fileConfig(fname[, defaults])
77+
.. function:: fileConfig(fname, defaults=None, disable_existing_loggers=True)
7878

79-
Reads the logging configuration from a :mod:`configparser`\-format file named
80-
*fname*. This function can be called several times from an application,
81-
allowing an end user to select from various pre-canned
79+
Reads the logging configuration from a :mod:`configparser`\-format file
80+
named *fname*. This function can be called several times from an
81+
application, allowing an end user to select from various pre-canned
8282
configurations (if the developer provides a mechanism to present the choices
83-
and load the chosen configuration). Defaults to be passed to the ConfigParser
84-
can be specified in the *defaults* argument.
83+
and load the chosen configuration).
84+
85+
:param defaults: Defaults to be passed to the ConfigParser can be specified
86+
in this argument.
87+
88+
:param disable_existing_loggers: If specified as ``False``, loggers which
89+
exist when this call is made are left
90+
alone. The default is ``True`` because this
91+
enables old behaviour in a backward-
92+
compatible way. This behaviour is to
93+
disable any existing loggers unless they or
94+
their ancestors are explicitly named in the
95+
logging configuration.
8596

8697

8798
.. function:: listen(port=DEFAULT_LOGGING_CONFIG_PORT)

0 commit comments

Comments
 (0)