[issue26533] logging.config does not allow disable_existing_loggers=True

Grazfather x report at bugs.python.org
Thu Mar 10 17:28:46 EST 2016


New submission from Grazfather x:

logging.config.FileConfig has a kwarg 'disable_existing_loggers' that defaults to False, but when true will allow you to load a config and not disable all other existing loggers.

logging.config.listen uses FileConfig, but has no option to provide this keyword to it, which is a problem when a logger hierarchy is build using logger.getLogger(__name__) (which is recommended in the documentation).

Proposal: Add kwarg 'disable_existing_loggers' to logging.config.listen which is passed to fileConfig.

----------
components: Library (Lib)
messages: 261526
nosy: Grazfather x
priority: normal
severity: normal
status: open
title: logging.config does not allow disable_existing_loggers=True
type: enhancement
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26533>
_______________________________________


More information about the Python-bugs-list mailing list