diff options
| author | Lucas Cimon <lucas.cimon@gmail.com> | 2019-10-31 09:06:25 +0100 |
|---|---|---|
| committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2019-10-31 08:06:25 +0000 |
| commit | b15100fe7def8580c78ed16f0bb4b72b2ae7af3f (patch) | |
| tree | f65caddb35b979e84b8cc1ecd09995b6769c1ea8 /Lib/logging/config.py | |
| parent | 79d4ed102a5069c6cebaed2627cb1645637f0429 (diff) | |
| download | cpython-git-b15100fe7def8580c78ed16f0bb4b72b2ae7af3f.tar.gz | |
bpo-38586: setting logging.Handler .name property in fileConfig (GH-16918)
Diffstat (limited to 'Lib/logging/config.py')
| -rw-r--r-- | Lib/logging/config.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 9dd35e11aa..4a3b8966ed 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -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) |
