diff options
author | Dmitri Vereshchagin <dmitri.vereshchagin@gmail.com> | 2019-08-28 07:40:56 +0300 |
---|---|---|
committer | Dmitri Vereshchagin <dmitri.vereshchagin@gmail.com> | 2019-08-28 07:40:56 +0300 |
commit | 0392742ceb52f5b8eefdd8138387b2c8f2e9fd48 (patch) | |
tree | 100fbe31bee9bfc8fab00f518a0d59ecd0cb5270 /src/rebar_digraph.erl | |
parent | 542b93a8526873dd3bbc0440aad3e7d3093ac4d8 (diff) |
Disable the default logger handler in shell if required
To avoid a conflict the Kernel's default handler have to be disabled
before the new default handler is added
{kernel,
[{logger,
[{handler, default, undefined}
]}
]},
{my_app,
[{logger,
[{handler, default, my_handler, #{}}
]}
]}
To support this behavior in shell it's necessary to process the
handler-default-undefined tuple.
It's not clear what to do with the simple handler (logger_simple_h)
however. It's added at the start and removed if a default handler was
added. Should it be added in reread_logger_config/1 if there's no
default handler?
Diffstat (limited to 'src/rebar_digraph.erl')
0 files changed, 0 insertions, 0 deletions