Skip to content

Commit afbda58

Browse files
committed
Change log format
Signed-off-by: arthurPignet <arthur.pignet@mines-paristech.fr>
1 parent 2e28840 commit afbda58

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mplc/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ def init_logger(debug=False):
122122
log_filter = MyFilter("INFO")
123123
logger.opt(depth=1)
124124
# Forward logging to standard output
125-
logger.add(sys.stdout, enqueue=True, filter=log_filter, level=0)
125+
logger.add(sys.stdout,
126+
enqueue=True,
127+
filter=log_filter,
128+
format='<blue>{time:YYYY-MM-DD HH:mm:ss}</> | {level: <7} | {message}',
129+
level=0)
126130
if debug:
127131
log_filter.set_to_debug_level()
128132
else:

0 commit comments

Comments
 (0)