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
I'd like to include lager logging for eunit tests but I'm having problems with even simple configuration. I'd like to see all logs in "log/tests.log" so I have one file handler set to debug.
However with this configuration nothing is logged. But if I add a lager:error line in the test then some logging (but not all) appears.
My theory is the lager parse transform isn't working correctly with eunit which itself uses a parse_transform for exporting test functions.
Anyway, I've done a minimal sample application to demostrate (Erlang R21.3).
Hello,
I'd like to include lager logging for eunit tests but I'm having problems with even simple configuration. I'd like to see all logs in "log/tests.log" so I have one file handler set to debug.
However with this configuration nothing is logged. But if I add a
lager:error
line in the test then some logging (but not all) appears.My theory is the lager parse transform isn't working correctly with eunit which itself uses a parse_transform for exporting test functions.
Anyway, I've done a minimal sample application to demostrate (Erlang R21.3).
then
rebar3 eunit
.This gives me the output:
but no output without the "starting test" line, and neither info or debug events are ever logged.
The text was updated successfully, but these errors were encountered: