mirror of https://github.com/python/cpython.git
Updated docs for basicConfig to indicate it's a no-op if handlers have been defined for the root logger.
This commit is contained in:
parent
503f2935c9
commit
e28fa297e9
|
@ -693,7 +693,8 @@ functions.
|
||||||
|
|
||||||
Does basic configuration for the logging system by creating a
|
Does basic configuration for the logging system by creating a
|
||||||
:class:`StreamHandler` with a default :class:`Formatter` and adding it to the
|
:class:`StreamHandler` with a default :class:`Formatter` and adding it to the
|
||||||
root logger. The functions :func:`debug`, :func:`info`, :func:`warning`,
|
root logger. The function does nothing if any handlers have been defined for
|
||||||
|
the root logger. The functions :func:`debug`, :func:`info`, :func:`warning`,
|
||||||
:func:`error` and :func:`critical` will call :func:`basicConfig` automatically
|
:func:`error` and :func:`critical` will call :func:`basicConfig` automatically
|
||||||
if no handlers are defined for the root logger.
|
if no handlers are defined for the root logger.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue