Commit 82ddc437 authored by Olivier Kaufmann's avatar Olivier Kaufmann
Browse files

Improves std_out logging look

Showing with 1 addition and 1 deletion
+1 -1
...@@ -10,7 +10,7 @@ from termcolor import colored ...@@ -10,7 +10,7 @@ from termcolor import colored
def create_stdout_logger(name): def create_stdout_logger(name):
logger = logging.getLogger(f'{name}_logger') logger = logging.getLogger(f'{name}_logger')
log_format = f'%(asctime)-15s | {name} | %(levelname)s: %(message)s' log_format = f'%(asctime)-15s | {name[:4]:4s} | %(levelname)s: %(message)s'
formatter = logging.Formatter(log_format) formatter = logging.Formatter(log_format)
formatter.converter = gmtime formatter.converter = gmtime
formatter.datefmt = '%Y-%m-%d %H:%M:%S UTC' formatter.datefmt = '%Y-%m-%d %H:%M:%S UTC'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment