glimt/erlang_logger/json_formatter

Functions

pub fn format(log_event: Dynamic, config: Dynamic) -> String

This is the callback that will be used by erlang logger to format log events. It is not intended to use directly.

pub fn use_with_handler(handler_id: String) -> Nil

Set json_formatter for erlang logger handler with handler_id

Example:

use_with_handler("default")

Set basic Glimt formatting for the default handler (logger_std_h)

Search Document