Remove timedRotatingFile log config
This commit is contained in:
parent
861865807a
commit
c3683662c2
|
@ -76,13 +76,6 @@ By default, log_config parameter is set to use sanic.config.LOGGING dictionary f
|
|||
(Notice that in Docker you have to enable everything by yourself)
|
||||
|
||||
|
||||
- accessTimedRotatingFile (using [logging.handlers.TimedRotatingFileHandler](https://docs.python.org/3/library/logging.handlers.html#logging.handlers.TimedRotatingFileHandler))<br>
|
||||
For requests information logging to file with daily rotation support.
|
||||
|
||||
|
||||
- errorTimedRotatingFile (using [logging.handlers.TimedRotatingFileHandler](https://docs.python.org/3/library/logging.handlers.html#logging.handlers.TimedRotatingFileHandler))<br>
|
||||
For error message and traceback logging to file with daily rotation support.
|
||||
|
||||
And `filters`:
|
||||
|
||||
- accessFilter (using sanic.log.DefaultFilter)<br>
|
||||
|
|
|
@ -77,24 +77,6 @@ LOGGING = {
|
|||
'filters': ['errorFilter'],
|
||||
'formatter': 'simple'
|
||||
},
|
||||
'accessTimedRotatingFile': {
|
||||
'class': 'logging.handlers.TimedRotatingFileHandler',
|
||||
'filters': ['accessFilter'],
|
||||
'formatter': 'access',
|
||||
'when': 'D',
|
||||
'interval': 1,
|
||||
'backupCount': 7,
|
||||
'filename': 'access.log'
|
||||
},
|
||||
'errorTimedRotatingFile': {
|
||||
'class': 'logging.handlers.TimedRotatingFileHandler',
|
||||
'filters': ['errorFilter'],
|
||||
'when': 'D',
|
||||
'interval': 1,
|
||||
'backupCount': 7,
|
||||
'filename': 'error.log',
|
||||
'formatter': 'simple'
|
||||
}
|
||||
},
|
||||
'loggers': {
|
||||
'sanic': {
|
||||
|
|
Loading…
Reference in New Issue
Block a user