1
0
Fork 0
forked from github/pelican
pelican-theme/pelican
Deniz Turgut ed3209888a Refactor logging handling
Old system was using manual string formatting for log messages.
This caused issues with common operations like exception logging
because often they need to be handled differently for Py2/Py3
compatibility. In order to unify the effort:

 - All logging is changed to `logging.level(msg, arg1, arg2)` style.
 - A `SafeLogger` is implemented to auto-decode exceptions properly
in the args (ref #1403).
 - Custom formatters were overriding useful logging functionality
like traceback outputing (ref #1402). They are refactored to be
more transparent. Traceback information is provided in `--debug`
mode for `read_file` errors in generators.
 - Formatters will now auto-format multiline log messages in order
to make them look related. Similarly, traceback will be formatted in
the same fashion.
 - `pelican.log.LimitFilter` was (ab)using logging message which
would result in awkward syntax for argumented logging style. This
functionality is moved to `extra` keyword argument.
 - Levels for errors that would result skipping a file (`read_file`)
changed from `warning` to `error` in order to make them stand out
among other logs.
 - Small consistency changes to log messages (i.e. changing all
to start with an uppercase letter) and quality-of-life improvements
(some log messages were dumping raw object information).
2014-07-22 12:39:39 -04:00
..
tests Refactor logging handling 2014-07-22 12:39:39 -04:00
themes Run tag name through escape filter to avoid invalid HTML 2014-02-18 15:01:31 +01:00
tools Refactor logging handling 2014-07-22 12:39:39 -04:00
__init__.py Refactor logging handling 2014-07-22 12:39:39 -04:00
contents.py Refactor logging handling 2014-07-22 12:39:39 -04:00
generators.py Refactor logging handling 2014-07-22 12:39:39 -04:00
log.py Refactor logging handling 2014-07-22 12:39:39 -04:00
paginator.py Refactor logging handling 2014-07-22 12:39:39 -04:00
readers.py Refactor logging handling 2014-07-22 12:39:39 -04:00
rstdirectives.py Support for pygment defaults and relevant documentation 2013-09-15 23:13:17 -07:00
server.py Refactor logging handling 2014-07-22 12:39:39 -04:00
settings.py Refactor logging handling 2014-07-22 12:39:39 -04:00
signals.py add get_writer signal and unify with get_generators 2014-04-27 14:25:08 +02:00
urlwrappers.py Refactor logging handling 2014-07-22 12:39:39 -04:00
utils.py Refactor logging handling 2014-07-22 12:39:39 -04:00
writers.py Refactor logging handling 2014-07-22 12:39:39 -04:00