<div dir="ltr">I don't know about the lager part, but, if I remember right, to get the crash reports SASL needs to be started</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 22, 2016 at 3:11 PM, Martin Koroudjiev <span dir="ltr"><<a href="mailto:mrtndimitrov@gmail.com" target="_blank">mrtndimitrov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
from what I read about the error_logger "Error, warning and info
events are sent to the error logger from the Erlang runtime system
and the different Erlang/OTP applications." So, I guess, errors in
non-supervised code are also sent to the error_logger. But not to
lager's crash file. Actually this badmatch error is not reported
anywhere. How can I make lager report it?<br>
<br>
Regards,<br>
Martin<div><div class="h5"><br>
<br>
<div>On 1/22/2016 7:55 PM, Nathaniel
Waisbrot wrote:<br>
</div>
<blockquote type="cite">
<div>
<blockquote type="cite">
<div>dummy = <a>application:get_env(myapp</a>, test).</div>
<div><br>
This results in badmatch. But there is no entry in
crash.log. I had<br>
configured another log file warning.log that gets populated
with a<br>
one-liner but I would like to see the detailed report in
crash.log.<br>
</div>
</blockquote>
</div>
<div><br>
</div>
<div><br>
</div>
<div>The crash.log comes from things that use the
error_logger (<a href="http://erlang.org/doc/man/error_logger.html" target="_blank">http://erlang.org/doc/man/error_logger.html</a>).
Typically, this is OTP applications crashing.</div>
<div><br>
</div>
<div>Try putting that badmatch inside of a gen_server's
handle_cast/3 method and you should see lager's handling (and if
you disable crash logging in lager you can see what the default
error_logger does with it).</div>
<div><br>
</div>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>