mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-14 01:20:27 +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)
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user