[erlang-questions] Trim Logger output

Frank Muller frank.muller.erl@REDACTED
Thu Mar 14 13:50:26 CET 2019


Hi Siri

Exactly what I want. Any real example usage with good default settings
please?

I want to trim my strings to 1KB.

/Frank

Hi Frank,
>
> The default formatter, logger_formatter, has three configuration
> parameters for this purpose: depth, chars_limit, and max_size. depth and
> chars_limit are soft limits that work on format strings, and max_size is a
> hard truncation limit. See http://erlang.org/doc/man/logger_formatter.html
> for more details.
>
> Regards
> /siri
>
> Den tor. 14. mar. 2019 kl. 12:39 skrev Frank Muller <
> frank.muller.erl@REDACTED>:
>
>> Hi guys
>>
>> Which config I should use to force Logger trim long lines of logs
>> (ellided [...])?
>>
>> Thanks in advance
>> /Frank
>>
> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190314/32fa4a3b/attachment.htm>


More information about the erlang-questions mailing list