Allow to filter out log messages by templates

Fixes #1594.
This commit is contained in:
Alexander Turenko 2016-09-12 03:01:22 +03:00
commit 1b1d1fd9f7
2 changed files with 21 additions and 4 deletions

View file

@ -777,6 +777,16 @@ be filtered out.
For example: ``[(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')]``
**Warning:** Silencing messages by templates is a dangerous feature. It is
possible to unintentionally filter out multiple message types with the same
template (including messages from future Pelican versions). Proceed with
caution.
.. _reading_only_modified_content: