mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
Merge pull request #501 from in0th3p/comprehensiveLogging
added TimeStamp to logging
This commit is contained in:
commit
f6317eee33
@ -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