Rotating file log

This commit is contained in:
Ruben van de Ven 2019-11-12 14:36:47 +01:00
parent 8f7c31a9e5
commit 76905102b4

View file

@ -48,6 +48,7 @@ if __name__ == '__main__':
logFileHandler.setFormatter(logging.Formatter(
fmt="%(asctime)s %(name)s[%(process)d,%(threadName)s] %(levelname)s %(message)s"
))
logFileHandler.setLevel(logging.DEBUG)
logger.addHandler(logFileHandler)
# logger.setLevel(1) # to send all records to cutelog