mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Set error logs file handler to a rotating one
This commit is contained in:
parent
82a170402e
commit
675d011a76
@ -50,11 +50,13 @@ SUBSCRIBER_LOGGING_CONFIG = {
|
||||
'level': logging.INFO,
|
||||
},
|
||||
'errors': {
|
||||
'class': 'logging.FileHandler',
|
||||
'class': 'logging.handlers.RotatingFileHandler',
|
||||
'filename': join(DEFAULT_LOG_DIR, 'bigchaindb-errors.log'),
|
||||
'mode': 'w',
|
||||
'level': logging.ERROR,
|
||||
'maxBytes': 209715200,
|
||||
'backupCount': 5,
|
||||
'formatter': 'file',
|
||||
'level': logging.ERROR,
|
||||
},
|
||||
},
|
||||
'loggers': {},
|
||||
|
Loading…
x
Reference in New Issue
Block a user