Logfmt.Encoder (logfmt v3.3.3) View Source

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"

Link to this section Summary

Link to this section Functions

Link to this function

encode(list, options \\ [])

View Source

Specs

encode(Dict.t(), options :: Keyword.t()) :: String.t()

See Logfmt.encode.