View Source nova_jsonlogger (nova v0.11.0)

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

Summary

Types

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

Functions

-spec format(logger:log_event(), config()) -> unicode:chardata().
Link to this function

system_time_to_iso8601(Epoch)

View Source
-spec system_time_to_iso8601(integer()) -> binary().
Link to this function

system_time_to_iso8601_nano(Epoch)

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