Update create_logger.py

This commit is contained in:
David Rotermund 2024-04-23 12:28:34 +02:00 committed by GitHub
parent bf04116242
commit d973d48818
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ def create_logger(
logger.setLevel(logging.DEBUG) logger.setLevel(logging.DEBUG)
if save_logging_messages: if save_logging_messages:
time_format = "%b %-d %Y %H:%M:%S" time_format = "%b %d %Y %H:%M:%S"
logformat = "%(asctime)s %(message)s" logformat = "%(asctime)s %(message)s"
file_formatter = logging.Formatter(fmt=logformat, datefmt=time_format) file_formatter = logging.Formatter(fmt=logformat, datefmt=time_format)
os.makedirs("logs_" + log_stage_name, exist_ok=True) os.makedirs("logs_" + log_stage_name, exist_ok=True)