View Source grisp_connect_log (grisp_connect v2.1.0)

Utility module to handle logs.

Link to this section Summary

Link to this section Types

-type get_options() :: #{max_batch_size => non_neg_integer(), max_byte_size => non_neg_integer()}.
-type sync_options() :: #{seq := non_neg_integer(), dropped => non_neg_integer()}.

Link to this section Functions

Link to this function

format(LogEvent, Config)

View Source
-spec get(Opts :: get_options()) -> #{dropped := non_neg_integer(), events := list()}.
-spec sync(Opts :: sync_options()) -> ok.