Update kabot.py
This commit is contained in:
parent
8efd8d2354
commit
518687059f
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ logger.setLevel(logging.DEBUG)
|
||||||
formatter = logging.Formatter('%(asctime)s :: %(levelname)s :: %(message)s')
|
formatter = logging.Formatter('%(asctime)s :: %(levelname)s :: %(message)s')
|
||||||
|
|
||||||
## definition du fichier de log (chemin, level, etc ...)
|
## 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.setLevel(logging.DEBUG)
|
||||||
file_handler.setFormatter(formatter)
|
file_handler.setFormatter(formatter)
|
||||||
logger.addHandler(file_handler)
|
logger.addHandler(file_handler)
|
||||||
|
|
Loading…
Reference in a new issue