StructuredLogger

For now this library just provides a simple log formatter to be used alongside the default :console backend.

It’s goal is to generate a flat key-value structure that is easily serializable in Logfmt (maybe JSON support can be added later). A flat structure is actually a design decision that:

The formatting is a pipeline comprised of:

Installation

For now this package is only available through git, so to install you can add:

def deps do
  [
    {:structured_logger, github: "bamorim/structured_logger"}
  ]
end