mirror of
https://github.com/python/cpython.git
synced 2025-08-24 02:35:59 +00:00
bpo-38586: setting logging.Handler .name property in fileConfig (GH-16918)
This commit is contained in:
parent
79d4ed102a
commit
b15100fe7d
3 changed files with 26 additions and 0 deletions
|
@ -143,6 +143,7 @@ def _install_handlers(cp, formatters):
|
|||
kwargs = section.get("kwargs", '{}')
|
||||
kwargs = eval(kwargs, vars(logging))
|
||||
h = klass(*args, **kwargs)
|
||||
h.name = hand
|
||||
if "level" in section:
|
||||
level = section["level"]
|
||||
h.setLevel(level)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue