nova_jsonlogger (nova v0.14.3)

View Source

Custom formatter for the Erlang OTP logger application which outputs single-line JSON formatted data

Summary

Types

config/0

-type config() ::
          #{new_line => boolean(),
            new_line_type => nl | crlf | cr | unix | windows | macos9,
            key_mapping => #{atom() => atom()},
            format_funs => #{atom() => fun((_) -> _)}}.

Functions

format(Map, Config)

-spec format(logger:log_event(), config()) -> unicode:chardata().

system_time_to_iso8601(Epoch)

-spec system_time_to_iso8601(integer()) -> binary().

system_time_to_iso8601_nano(Epoch)

-spec system_time_to_iso8601_nano(integer()) -> binary().