logger
This commit is contained in:
@@ -36,6 +36,7 @@ class _CustomFormatter(logging.Formatter):
|
||||
return record
|
||||
|
||||
logging.setLogRecordFactory(_record_factory)
|
||||
|
||||
def format(self, record):
|
||||
log_fmt = self.FORMATS.get(record.levelno)
|
||||
formatter = logging.Formatter(log_fmt, "%d-%m-%Y %H:%M:%S")
|
||||
|
||||
Reference in New Issue
Block a user