Increase log size per line (Logger)
Frank Muller
frank.muller.erl@REDACTED
Thu Jun 4 12:55:17 CEST 2020
Hi guys,
We are receiving this nested JSON from an external service:
#{<<"api_version">> => <<"2018-11-08">>,<<"created">> =>
1591267056,<<"data">> => #{<<"object">> => #{<<"receipt_email">> =>
null,<<"destination">> => null,<<"stat"...>> => null,<<"orde"...>> =>
null,<<"rece"...>> => <<"http"...>>,<<"tran"...>> => null,...}},<<"id">> =>
<<"evt_1GqGS4KZLZnYPC2KUt26Na">>,<<"livemode">> => false,<<"object">> =>
<<"event">>,<<"pending_webh"...>> => 1,<<"request">> => #{<<...>> =>
<<...>>,...},...}
As you can see, Logger is truncating some parts of it and replacing them
with …
This is our logger config:
{logger,
[{handler,default,logger_disk_log_h,
#{config =>
#{burst_limit_enable => true,burst_limit_max_count =>
20,
burst_limit_window_time => 500,
file => "/var/log/gde/error.log",max_no_bytes =>
52428800,
max_no_files => 50},
formatter =>
{logger_formatter,
#{chars_limit => 512,depth => 20,max_size => 8192,
single_line => true}},
level => error}},
{handler,info,logger_disk_log_h,
#{config =>
#{burst_limit_enable => true,burst_limit_max_count =>
20,
burst_limit_window_time => 500,
file => "/var/log/gde/debug.log",max_no_bytes =>
52428800,
max_no_files => 50},
formatter =>
{logger_formatter,
#{chars_limit => 512,depth => 20,max_size => 8192,
single_line => true}},
level => debug}}]}]},
How can I change the debug.log’s logger settings to see more stuffs in my
logs (i.e less truncated)?
Thanks.
OTP 22.3.4.1 on Ubuntu 18.04 LTS
/Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20200604/14765191/attachment.htm>
More information about the erlang-questions
mailing list