View Source MetaLogger.Slicer behaviour (MetaLogger v1.9.1)
A behaviour for slicing long entries into a list of entries shorter than a passed max_entry_length
value.
Summary
Types
Max length in bytes or :infinity
if the entry should not be sliced.
Types
@type max_entry_length() :: non_neg_integer() | :infinity
Max length in bytes or :infinity
if the entry should not be sliced.
Callbacks
@callback slice(binary(), max_entry_length()) :: [binary()]