From af01bccaa5450dd0401cf0337764f94c84405518 Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 19 Sep 2018 00:43:44 +0100 Subject: [PATCH] Change log level to show in logs as "[LEVEL]" instead of " - LEVEL - " --- Logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Logging.py b/Logging.py index c2fbde1c..dadde2b9 100644 --- a/Logging.py +++ b/Logging.py @@ -19,7 +19,7 @@ class Log(object): self.logger.setLevel(logging.DEBUG) formatter = BitBotFormatter( - "%(asctime)s - %(levelname)s - %(message)s", + "%(asctime)s [%(levelname)s] %(message)s", "%Y-%m-%dT%H:%M:%S.%f%z") stdout_handler = logging.StreamHandler(sys.stdout)