main.py: change default log rotation/retention settings

This commit is contained in:
Romain Bazile 2020-10-19 11:27:14 +02:00
parent 3629cde800
commit 2cf0ff8341

View file

@ -19,11 +19,11 @@ import os
logger.add( logger.add(
# sys.stdout, # sys.stdout,
"PlanktoScope_{time}.log", "PlanktoScope_{time}.log",
rotation="01:00", rotation="5 MB",
retention="1 month", retention="1 week",
compression=".tar.gz", compression=".tar.gz",
enqueue=True, enqueue=True,
level="INFO", level="DEBUG",
) )
# The available level for the logger are as follows: # The available level for the logger are as follows: