[erlang-questions] no more logs using logger with common tests
Benoit Chesneau
bchesneau@REDACTED
Tue May 28 11:14:29 CEST 2019
Hi all,
I've switched my code to logger macros instead of using lager. But now I've
no log stored on the filesystem ie in
`_build/test/logs/ct_run.nonode\@nohost.2019-05-28_10.49.10/` or similar
folder.. Any idea what could be the issue?
I use following sys config:
```
[
{kernel,
[
{logger_level, debug},
{logger,
[{handler, default, logger_std_h,
#{level => error,
config => #{file => "log/erlang.log"}}},
{handler, info, logger_std_h,
#{level => debug,
config => #{file => "log/debug.log"}}}
]}]}
].
```
ad my rebar.config:
```
...
{ct_opts, [
{sys_config, ["config/test.config"]},
{ct_hooks, [cth_surefire]}
]}.
```
Hope it helps, any idea is welcome :)
Benoit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190528/b3ea142d/attachment.htm>
More information about the erlang-questions
mailing list