Trying to test code containing log statements with eunit test from rebar3 but all the logs disappear. Is this intended behavior?

I am trying to test some of my code that contains log statements, that I would like to see when running eunit test from rebar3.
But all the logs seem to disappear. Is this intended behavior?
Is there a way to see my log messages, or have them written to log file used when running the application.?

Thanks,
Mark.

1 Like

Likely you’re missing log files from successful tests. It’s a convenience feature, in order to reduce unnecessary output, rebar3 does not print logs for tests that succeeded.

You may want to add --readable false flags to rebar3 invocations to switch that filter off. Or, add --verbose --readable false to get the most verbose logs.

2 Likes