Structs
LogfmtAutoFields
is used to determine what fields of a log::Record should be rendered into
the final logfmt string by the LogfmtFormatter
. The default set is LEVEL | MESSAGE | MODULE_PATH
| EXTRALogfmtFormatter
provides a LokiFormatter
that marshals logs using the logfmt format, which is a
plain text log format that is easy for both humans and machines to read and write. Loki provides
support for logfmt out of the box. This is used as the default formatter for the Loki logger if
the logfmt
feature is enabled.
To learn more about logfmt, see: https://www.brandur.org/logfmtLogger implementation that writes its logs to Loki. Create one using the
LokiBuilder
.LokiBuilder
is used to construct the Loki
object.Enums
FailurePolicy
specifies how failures should be handled.Traits
LokiFormatter
implementations marshals a log record to a string. This trait can be implemented
to customize the format of the strings that get sent to Loki. By default, this crate provides a
logfmt LokiFormatter
implementation, which is used by default.