logfmt v3.1.2 Logfmt.Encoder

Encode a Dict into a logfmt-style log line.

Examples

iex> Logfmt.encode [foo: "bar"]
"foo=bar"

iex> Logfmt.encode [foo: "bar baz", qux: true]
"foo=\"bar baz\" qux=true"

Summary

Functions

encode(list)
encode(Dict.t) :: String.t

See Logfmt.encode.