Rotating file log
This commit is contained in:
parent
8f7c31a9e5
commit
76905102b4
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ if __name__ == '__main__':
|
||||||
logFileHandler.setFormatter(logging.Formatter(
|
logFileHandler.setFormatter(logging.Formatter(
|
||||||
fmt="%(asctime)s %(name)s[%(process)d,%(threadName)s] %(levelname)s %(message)s"
|
fmt="%(asctime)s %(name)s[%(process)d,%(threadName)s] %(levelname)s %(message)s"
|
||||||
))
|
))
|
||||||
|
logFileHandler.setLevel(logging.DEBUG)
|
||||||
logger.addHandler(logFileHandler)
|
logger.addHandler(logFileHandler)
|
||||||
|
|
||||||
# logger.setLevel(1) # to send all records to cutelog
|
# logger.setLevel(1) # to send all records to cutelog
|
||||||
|
|
Loading…
Reference in a new issue