From 35fc5ea6b0bc266def42e0fc6fb952ae0d81ecbd Mon Sep 17 00:00:00 2001 From: Oscar Krause Date: Fri, 21 Jun 2024 18:59:23 +0200 Subject: [PATCH] set log format --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index c79c7b7..81c1c37 100644 --- a/app/main.py +++ b/app/main.py @@ -91,7 +91,7 @@ app.add_middleware( # Logging LOG_LEVEL = logging.DEBUG if DEBUG else logging.INFO -logging.basicConfig() +logging.basicConfig(format='[{levelname:^7}] [{module:^15}] {message}', style='{') logger = logging.getLogger(__name__) logger.setLevel(LOG_LEVEL) logging.getLogger('util').setLevel(LOG_LEVEL)