You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2
According to erlang documentation it is possibe to configure logger for file only:
from Erlang Documentation:
[http://erlang.org/doc/apps/kernel/logger_chapter.html#logger_parameter]
{quote}
Modify the default handler to print to a file instead of standard_io:
[\{kernel,
[\{logger,
[\{handler, default, logger_std_h, % \{handler, HandlerId, Module,Config}
#\{config => #\{file => "log/erlang.log"}}}
]}]}].
{quote}
1. In case of a wrong parameter, Logger just do not create file.
Looks like documentation is incomplete
{quote} \[\{kernel, \[\{logger, \[\{handler, default, logger_std_h, % \{handler, HandlerId, Module,Config} #\{config => #\{file => "log/erlang.log"}}} ]}]}].
\{config => #\{file => "log/erlang.log"}}
{quote}
should be changed to:
{quote}#\{config => #\{ type => \{file => "log/erlang.log"}}}}
[\{kernel,
[\{logger,
[\{handler, default, logger_std_h, % \{handler, HandlerId, Module,Config}
#\{config => #\{ type => \{file => "log/erlang.log"}}}}
]}]}].
{quote}
The text was updated successfully, but these errors were encountered:
Original reporter:
ad-pro
Affected version:
OTP-21.0
Component:
edoc
Migrated from: https://bugs.erlang.org/browse/ERL-913
The text was updated successfully, but these errors were encountered: