MetaLogger.Slicer.slice
You're seeing just the function
slice
, go back to MetaLogger.Slicer module for more information.
Specs
slice(String.t(), max_entry_length()) :: [String.t()]
Returns sliced log entries according to the given max entry length.
If the entry is smaller than given max length, or if :infinity
is given
as option, a list with one entry is returned. Otherwise a list with multiple
entries is returned.
Examples
iex> MetaLogger.Slicer.slice("1234567890", 10)
["1234567890"]
iex> MetaLogger.Slicer.slice("1234567890", :infinity)
["1234567890"]
iex> MetaLogger.Slicer.slice("1234567890", 5)
["12345", "67890"]