modifié: m/log.py
This commit is contained in:
parent
7a7560e813
commit
f6d3e0c6df
2
m/log.py
2
m/log.py
@ -42,7 +42,7 @@ class Log(object):
|
|||||||
file_handler.setFormatter(formatter)
|
file_handler.setFormatter(formatter)
|
||||||
self.logger.addHandler(file_handler)
|
self.logger.addHandler(file_handler)
|
||||||
|
|
||||||
file_handler_warning = RotatingFileHandler('illegal.log', 'a', 1000000, 1)
|
file_handler_warning = RotatingFileHandler('warning.log', 'a', 1000000, 1)
|
||||||
f1 = SingleLevelFilter(logging.WARNING, False)
|
f1 = SingleLevelFilter(logging.WARNING, False)
|
||||||
file_handler_warning.addFilter(f1)
|
file_handler_warning.addFilter(f1)
|
||||||
file_handler_warning.setFormatter(formatter)
|
file_handler_warning.setFormatter(formatter)
|
||||||
|
Reference in New Issue
Block a user