Update kabot.py

This commit is contained in:
Milka64 2020-08-13 20:03:55 +00:00
parent 8efd8d2354
commit 518687059f

View file

@ -34,7 +34,7 @@ logger.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s :: %(levelname)s :: %(message)s')
## definition du fichier de log (chemin, level, etc ...)
file_handler = RotatingFileHandler('/var/log/kabot.log', 'a', 1000000, 1)
file_handler = RotatingFileHandler('/var/log/kabot/kabot.log', 'a', 1000000, 1)
file_handler.setLevel(logging.DEBUG)
file_handler.setFormatter(formatter)
logger.addHandler(file_handler)