GSMLG.Logger.Formatters.GsmlgNet (gsmlg_logger v0.1.0)
Custom Erlang's :logger formatter which
writes logs in a structured format that can be consumed by gsmlg.net.
This formatter adheres to the gsmlg.net project.
Formatter Configuration
The formatter can be configured with the following options:
:planet(optional) - set the planet of gsmlg.net.
For list of shared options see "Shared options" in GSMLG.Logger.
Metadata
For list of other well-known metadata keys see "Metadata" in GSMLG.Logger.
Examples
%{
time: utc_time(meta),
level: Atom.to_string(level),
message: encode(message, redactors),
metadata: encode(take_metadata(meta, metadata_selector), redactors)
}