Rework logging structure

This commit is contained in:
2023-03-16 23:51:41 +01:00
parent 891661bdc6
commit 655edece3f
2 changed files with 2 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ init:
pip install -r requirements.txt pip install -r requirements.txt
install: install:
mkdir logs
cp jeevesbot/env.py.dist jeevesbot/env.py cp jeevesbot/env.py.dist jeevesbot/env.py
cp jeevesbot/secret.json.dist jeevesbot/secret.json cp jeevesbot/secret.json.dist jeevesbot/secret.json

2
log.py
View File

@@ -17,7 +17,7 @@ LOGGING = {
'level' : 'INFO', 'level' : 'INFO',
'class': 'logging.handlers.RotatingFileHandler', 'class': 'logging.handlers.RotatingFileHandler',
'formatter': 'standard', 'formatter': 'standard',
'filename': 'jeeves.log', 'filename': 'logs/jeeves.log',
'maxBytes': 4096, 'maxBytes': 4096,
'backupCount': 7 'backupCount': 7
} }