Change log level to show in logs as "[LEVEL]" instead of " - LEVEL - "

This commit is contained in:
jesopo 2018-09-19 00:43:44 +01:00
parent 0c7d088230
commit af01bccaa5

View file

@ -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)