From 1360b4c7380c9dae71affd893bac10d7fceb5f13 Mon Sep 17 00:00:00 2001 From: Brain Date: Wed, 26 Jan 2022 23:19:06 +0100 Subject: [PATCH] Give the root logger a nicer format --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index dfba6ee..ff1edd3 100644 --- a/app.py +++ b/app.py @@ -20,7 +20,7 @@ app = Flask(__name__) loglevel = os.getenv("KI_LOGLEVEL", logging.WARNING) loglevel = int(loglevel) app.logger.setLevel(loglevel) -logging.basicConfig(level=loglevel) +logging.basicConfig(level=loglevel, format='[%(asctime)s] %(levelname)s [%(name)s] %(message)s') # configure root logger as fallback set_library_log_detail_level(BASIC) ldap3_logger.addHandler(default_handler)