View Source LoggerJSON.Formatters.Basic (logger_json v6.0.0-rc.0)

Custom Erlang's :logger formatter which writes logs in a JSON format.

For list of options see "Shared options" in LoggerJSON.

Examples

%{
  "message" => "Hello",
  "metadata" => %{"domain" => ["elixir"]},
  "severity" => "notice",
  "time" => "2024-04-11T21:31:01.403Z"
}

Summary

Functions

Link to this function

format_binary_message(binary)

View Source
Link to this function

format_crash_reason(binary, reason, meta)

View Source
Link to this function

format_structured_message(map)

View Source