added TimeStamp to logging

This commit is contained in:
Benjamin Wind 2019-04-29 15:48:04 +02:00
parent f95adf3ea3
commit 6a498382eb

View File

@ -40,7 +40,7 @@ class logger(object):
logger.addHandler(stderr_log_handler) logger.addHandler(stderr_log_handler)
# define logging format for console # define logging format for console
console_formatter = logging.Formatter('[%(levelname)s] %(message)s') console_formatter = logging.Formatter('[%(asctime)s] [%(levelname)s] | %(message)s')
stderr_log_handler.setFormatter(console_formatter) stderr_log_handler.setFormatter(console_formatter)
return logging.getLogger(self.name) return logging.getLogger(self.name)