Module structlog.formatters

Entry point for loading formatters.

StructlLog is completely flexible about how the resulting log entry is emitted. Since each log entry is a dictionary, its message can be formatted to any format.

Internally, formatters are processors whose return value (a log entry with formatted message) is passed into sinks that are responsible for the output of your message. StructLog comes with multiple useful formatters out-of-the-box.

Tables

M Formatter Module


Tables

M
Formatter Module

Fields:

  • Format Format log entries using a string format.
  • FormatColorizer Format and Colorize log entries. Note that it is only available for the Console sink.
generated by LDoc 1.4.6 Last updated 2023-01-08 13:36:35