New submission from Géry <gery.o...@gmail.com>:

In the logging package, the parameter disable_existing_loggers used in 
logging.config.dictConfig and logging.config.fileConfig does not apply to the 
root logger. More precisely, its disabled attribute remains unchanged (while it 
is set to True for non-root loggers). So it is either a bug or the 
documentation should be updated.

Illustration:

import logging.config

assert logging.getLogger().disabled is False
assert logging.getLogger("foo").disabled is False

logging.config.dictConfig({"version": 1})

assert logging.getLogger().disabled is False
assert logging.getLogger("foo").disabled is True

----------
components: Library (Lib)
messages: 333502
nosy: eric.araujo, ezio.melotti, maggyero, mdk, vinay.sajip, willingc
priority: normal
pull_requests: 11121
severity: normal
status: open
title: disable_existing_loggers does not apply to the root logger
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35722>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to