Merge pull request #706 from messense/feature/remove-log-file
Remove timedRotatingFile log config
This commit is contained in:
commit
fa1b7de52a
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -14,5 +14,3 @@ settings.py
|
|||
docs/_build/
|
||||
docs/_api/
|
||||
build/*
|
||||
access.log
|
||||
error.log
|
||||
|
|
|
@ -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