From b15100fe7def8580c78ed16f0bb4b72b2ae7af3f Mon Sep 17 00:00:00 2001 From: Lucas Cimon Date: Thu, 31 Oct 2019 09:06:25 +0100 Subject: bpo-38586: setting logging.Handler .name property in fileConfig (GH-16918) --- Lib/logging/config.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/logging/config.py') 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) -- cgit v1.2.1