-
Notifications
You must be signed in to change notification settings - Fork 519
Open
Description
Following an Logger example I noticed that basic alternation of default
handler doesn't seem to work in combination with rebar3 shell
:
[{kernel,
[{logger,
[{handler, default, logger_std_h,
#{config => #{file => "path/to/file.log"}}}]}]}].
This gives no result, configuration is not applied.
When I call erl -config config/sys.config
the configuration is applied as it should be. Even after I call logger:reconfigure/0
, the configuration stays the same. However, when I do rebar3 shell
with the same sys config file, it seems to be ignored. What is weird is that if I slightly modify the config by first setting default
handler to undefined
, then it works:
[{kernel,
[{logger,
[{handler, default, undefined},
{handler, default, logger_std_h,
#{config => #{file => "path/to/file.log"}}}]}]}].
The behavior seems to be specific only for the default
handler.
Using Rebar 3.24.0 with OTP 27.1.2
Metadata
Metadata
Assignees
Labels
No labels