mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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). |
||
|---|---|---|
| .. | ||
| _static | ||
| changelog.rst | ||
| conf.py | ||
| content.rst | ||
| contribute.rst | ||
| faq.rst | ||
| importer.rst | ||
| index.rst | ||
| install.rst | ||
| internals.rst | ||
| Makefile | ||
| pelican-themes.rst | ||
| plugins.rst | ||
| publish.rst | ||
| quickstart.rst | ||
| report.rst | ||
| settings.rst | ||
| themes.rst | ||
| tips.rst | ||