Log v0.5.0 Log.Args View Source

Provides logging for simple data structures in a human-readable fashion. It's meant to be used for manually-provided data structures with 1-4 fields:

require Log.Fields
Log.Fields.info({"a message", %{some_id: 123, some_name: "Jon"}})

Will output

[2000-01-01T01:01:01.001Z] INFO: a message (SomeId: 123, SomeName: Jon)

If String keys are used, no transformation to pascal case is performed. It's possible to use a keyword instead of a map.

Link to this section Summary

Link to this section Functions

Link to this macro

debug(chars_or_fun)

View Source (macro)
Link to this macro

debug(meta, meta)

View Source (macro)
Link to this macro

error(chars_or_fun)

View Source (macro)
Link to this macro

error(meta, meta)

View Source (macro)
Link to this macro

fatal(chars_or_fun)

View Source (macro)
Link to this macro

fatal(meta, meta)

View Source (macro)
Link to this macro

info(chars_or_fun)

View Source (macro)
Link to this macro

info(meta, meta)

View Source (macro)
Link to this macro

log(level, chars_or_fun, meta)

View Source (macro)
Link to this macro

trace(chars_or_fun)

View Source (macro)
Link to this macro

trace(meta, meta)

View Source (macro)
Link to this macro

warn(chars_or_fun)

View Source (macro)
Link to this macro

warn(meta, meta)

View Source (macro)