Closed TraceyOnim closed 2 years ago
The docs indeed have recently been updated to explain why this happens. Please check the docs from main: https://hexdocs.pm/ex_unit/master/ExUnit.CaptureLog.html#capture_log/2 :)
Thank you @josevalim , I have seen the part that explains
Elixir and Erlang/OTP versions
erlang 24.1.7 elixir 1.13.4-otp-24
Operating system
linux(ubuntu)
Current behavior
capture_log/2 returns an empty string if
Logger.info/1
is usedExpected behavior
To return the log message despite which logger is used. However , if this is how its supposed to perform, the docs should be updated to point out the case.