<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><blockquote type="cite" class=""><div class="">dummy = application:get_env(myapp, test).</div><div class=""><br class="">This results in badmatch. But there is no entry in crash.log. I had<br class="">configured another log file warning.log that gets populated with a<br class="">one-liner but I would like to see the detailed report in crash.log.<br class=""></div></blockquote></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">The crash.log comes from things that use the error_logger (<a href="http://erlang.org/doc/man/error_logger.html" class="">http://erlang.org/doc/man/error_logger.html</a>). Typically, this is OTP applications crashing.</div><div class=""><br class=""></div><div class="">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 class=""><br class=""></div></body></html>