Merge pull request #501 from in0th3p/comprehensiveLogging

added TimeStamp to logging
This commit is contained in:
Khanh Ngo 2019-05-01 09:18:39 +07:00 committed by GitHub
commit f6317eee33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ class logger(object):
logger.addHandler(stderr_log_handler)
# 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)
return logging.getLogger(self.name)