mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-12 16:40:26 +00:00
added TimeStamp to logging
This commit is contained in:
parent
f95adf3ea3
commit
6a498382eb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user