<div dir="ltr">Hi,<div><br></div><div>Looks like it. Have you tried to run it with the file backend? That might work. This brief section explains it: <a href="https://github.com/basho/lager/blob/master/README.md#configuration">https://github.com/basho/lager/blob/master/README.md#configuration</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-11 5:27 GMT+02:00 Frank Muller <span dir="ltr"><<a href="mailto:frank.muller.erl@gmail.com" target="_blank">frank.muller.erl@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi Jakub</div><div><br></div><div><div class="gmail_quote"><div>So because of 2 (I'm on windows), only old-shell is available and thus I can't get messages in the console :-/ ???</div><div><br></div><div>How people debug things in the console then?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>/Frank</div></font></span><div><div class="h5"><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_-23702912659370355gmail_msg"><div class="m_-23702912659370355gmail_msg">Hi,</div>It's always good to look at the code:<div class="m_-23702912659370355gmail_msg"><br class="m_-23702912659370355gmail_msg"><div class="m_-23702912659370355gmail_msg"><div class="m_-23702912659370355gmail_msg">is_new_style_console_<wbr>available() -></div><div class="m_-23702912659370355gmail_msg"> %% Criteria:</div><div class="m_-23702912659370355gmail_msg"> %% 1. If the user has specified '-noshell' on the command line,</div><div class="m_-23702912659370355gmail_msg"> %% then we will pretend that the new-style console is available.</div><div class="m_-23702912659370355gmail_msg"> %% If there is no shell at all, then we don't have to worry</div><div class="m_-23702912659370355gmail_msg"> %% about log events being blocked by the old-style shell.</div><div class="m_-23702912659370355gmail_msg"> %% 2. Windows doesn't support the new shell, so all windows users</div><div class="m_-23702912659370355gmail_msg"> %% have is the oldshell.</div><div class="m_-23702912659370355gmail_msg"> %% 3. If the user_drv process is registered, all is OK.</div><div class="m_-23702912659370355gmail_msg"> %% 'user_drv' is a registered proc name used by the "new"</div><div class="m_-23702912659370355gmail_msg"> %% console driver.</div><div class="m_-23702912659370355gmail_msg"><br class="m_-23702912659370355gmail_msg"></div><div class="m_-23702912659370355gmail_msg">[...]</div><div class="m_-23702912659370355gmail_msg"><br class="m_-23702912659370355gmail_msg"></div><div class="m_-23702912659370355gmail_msg"><div class="m_-23702912659370355gmail_msg">try {is_new_style_console_<wbr>available(), lager_util:config_to_mask(<wbr>Level)} of</div><div class="m_-23702912659370355gmail_msg"> {false, _} -></div><div class="m_-23702912659370355gmail_msg"> Msg = "Lager's console backend is incompatible with the 'old' shell, not enabling it",</div></div></div></div></div><div class="gmail_extra m_-23702912659370355gmail_msg"><br class="m_-23702912659370355gmail_msg"><div class="gmail_quote m_-23702912659370355gmail_msg"></div></div><div class="gmail_extra m_-23702912659370355gmail_msg"><div class="gmail_quote m_-23702912659370355gmail_msg">2017-04-10 22:19 GMT+02:00 Frank Muller <span class="m_-23702912659370355gmail_msg"><<a href="mailto:frank.muller.erl@gmail.com" class="m_-23702912659370355gmail_msg" target="_blank">frank.muller.erl@gmail.com</a>></span>:<br class="m_-23702912659370355gmail_msg"></div></div><div class="gmail_extra m_-23702912659370355gmail_msg"><div class="gmail_quote m_-23702912659370355gmail_msg"><blockquote class="gmail_quote m_-23702912659370355gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_-23702912659370355gmail_msg"><span style="font-family:UICTFontTextStyleBody" class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg">Hi,</span><br style="font-family:UICTFontTextStyleBody" class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg"><span style="font-family:UICTFontTextStyleBody" class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg"></span><br style="font-family:UICTFontTextStyleBody" class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg"><span style="font-family:UICTFontTextStyleBody" class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg">I’m using Lager in a basic Erlang app on Windows 7 (and even 10).</span><div class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg"><br style="font-family:UICTFontTextStyleBody" class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg"><span style="font-family:UICTFontTextStyleBody" class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg">Whenever I activate the console backend, I get this warning message:</span><br style="font-family:UICTFontTextStyleBody" class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg"><blockquote type="cite" style="font-family:UICTFontTextStyleBody" class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg">> WARNING: Lager's console backend is incompatible with the 'old' shell, not enabling it<br class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg"></blockquote><span style="font-family:UICTFontTextStyleBody" class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg"></span><br style="font-family:UICTFontTextStyleBody" class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg"><span style="font-family:UICTFontTextStyleBody" class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg">Can someone explain me what does it mean and how I can fix it?</span></div></div><span class="m_-23702912659370355m_-1373492034033861705HOEnZb m_-23702912659370355gmail_msg"><font color="#888888" class="m_-23702912659370355gmail_msg"><div class="m_-23702912659370355gmail_msg"><div class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg"><br style="font-family:UICTFontTextStyleBody" class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg"><span style="font-family:UICTFontTextStyleBody" class="m_-23702912659370355m_-1373492034033861705m_1589545978893107046gmail_msg m_-23702912659370355gmail_msg">/Frank</span></div></div>
</font></span><br class="m_-23702912659370355gmail_msg"></blockquote></div></div><div class="gmail_extra m_-23702912659370355gmail_msg"><div class="gmail_quote m_-23702912659370355gmail_msg"><blockquote class="gmail_quote m_-23702912659370355gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">______________________________<wbr>_________________<br class="m_-23702912659370355gmail_msg">
erlang-questions mailing list<br class="m_-23702912659370355gmail_msg">
<a href="mailto:erlang-questions@erlang.org" class="m_-23702912659370355gmail_msg" target="_blank">erlang-questions@erlang.org</a><br class="m_-23702912659370355gmail_msg">
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" class="m_-23702912659370355gmail_msg" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br class="m_-23702912659370355gmail_msg">
<br class="m_-23702912659370355gmail_msg"></blockquote></div><br class="m_-23702912659370355gmail_msg"></div>
</blockquote></div></div></div></div>
</blockquote></div><br></div>