forked from github/pelican
Import logging in LOG_FILTER examples
This commit is contained in:
parent
72756a5c0d
commit
15c069d411
1 changed files with 5 additions and 3 deletions
|
|
@ -1161,15 +1161,17 @@ Simply populate the list with the log messages you want to hide, and they will
|
|||
be filtered out.
|
||||
|
||||
For example::
|
||||
|
||||
[(logging.WARN, 'TAG_SAVE_AS is set to False')]
|
||||
|
||||
import logging
|
||||
LOG_FILTER = [(logging.WARN, 'TAG_SAVE_AS is set to False')]
|
||||
|
||||
It is possible to filter out messages by a template. Check out source code to
|
||||
obtain a template.
|
||||
|
||||
For example::
|
||||
|
||||
[(logging.WARN, 'Empty alt attribute for image %s in %s')]
|
||||
import logging
|
||||
LOG_FILTER = [(logging.WARN, 'Empty alt attribute for image %s in %s')]
|
||||
|
||||
.. Warning::
|
||||
Silencing messages by templates is a dangerous feature. It is possible to
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue