larger rotating log
This commit is contained in:
@@ -10,7 +10,7 @@ from infomentor import db, model, connector, informer
|
||||
logformat='{asctime} - {name:25s} - {levelname:8s} - {message}'
|
||||
def logtofile():
|
||||
from logging.handlers import RotatingFileHandler
|
||||
handler = RotatingFileHandler('log.txt', maxBytes=10240, backupCount=5)
|
||||
handler = RotatingFileHandler('log.txt', maxBytes=51200, backupCount=5)
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format=logformat,
|
||||
|
||||
Reference in New Issue
Block a user