Rework logging structure
This commit is contained in:
1
Makefile
1
Makefile
@@ -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
2
log.py
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user