Module structlog.formatters.format
Format entries using a string format.
The string format documentation can be found here: lua-5.4 manual
Functions
Format (format, entries, opts) | Format the log entries listed in entries with the given format. |
Functions
- Format (format, entries, opts)
-
Format the log entries listed in entries with the given format.
Remaining entries will be written as key=value.
Parameters:
- format A format to pass to string.format.
- entries The log entries to pass as arguments to string.format.
- opts Optional parameters.
- blacklist A list of entries to not format, default: {}.
- blacklist_all A boolean value indicating whether to format unformatted entries, default: false.
Returns:
-
A callable that formats the log message in the given format.