Logging format

This commit is contained in:
Fabio Manganiello 2020-10-29 14:27:19 +01:00
parent bfc8a270d0
commit 4e3a02b2cc

View file

@ -1,4 +1,8 @@
import logging import logging
import sys import sys
logging.basicConfig(level=logging.INFO, stream=sys.stdout) logging.basicConfig(level=logging.INFO,
stream=sys.stdout,
format='[%(asctime)s] %(name)s|%(levelname)-8s|%(message)s',
datefmt='%Y-%m-%d %H:%M:%S')