<div dir="ltr">Ok, I was using direct gen_event: gen_event:add_sup_handler(error_logger, Module, Config)</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 3, 2018 at 4:29 PM, Lukas Larsson <span dir="ltr"><<a href="mailto:lukas@erlang.org" target="_blank">lukas@erlang.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, May 3, 2018 at 3:07 PM, Max Lapshin <span dir="ltr"><<a href="mailto:max.lapshin@gmail.com" target="_blank">max.lapshin@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 dir="ltr"><div class="gmail_extra">Not sure about new logging:</div><div class="gmail_extra"><br></div><div class="gmail_extra">
<span></span>
<p class="m_-5162013643603264145m_-6010142396713279447gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-5162013643603264145m_-6010142396713279447gmail-s1" style="font-variant-ligatures:no-common-ligatures">$ erl</span></p>
<p class="m_-5162013643603264145m_-6010142396713279447gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-5162013643603264145m_-6010142396713279447gmail-s1" style="font-variant-ligatures:no-common-ligatures">Erlang/OTP 21 [RELEASE CANDIDATE 1] [erts-10.0] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe] [dtrace]</span></p>
<p class="m_-5162013643603264145m_-6010142396713279447gmail-p2" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255);min-height:15px"><span class="m_-5162013643603264145m_-6010142396713279447gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_-5162013643603264145m_-6010142396713279447gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-5162013643603264145m_-6010142396713279447gmail-s1" style="font-variant-ligatures:no-common-ligatures">Eshell V10.0<span class="m_-5162013643603264145m_-6010142396713279447gmail-Apple-converted-space"> </span>(abort with ^G)</span></p>
<p class="m_-5162013643603264145m_-6010142396713279447gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-5162013643603264145m_-6010142396713279447gmail-s1" style="font-variant-ligatures:no-common-ligatures">1> whereis(error_logger).</span></p>
<p class="m_-5162013643603264145m_-6010142396713279447gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-5162013643603264145m_-6010142396713279447gmail-s1" style="font-variant-ligatures:no-common-ligatures">undefined</span></p>
<p class="m_-5162013643603264145m_-6010142396713279447gmail-p1" style="margin:0px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:13px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_-5162013643603264145m_-6010142396713279447gmail-s1" style="font-variant-ligatures:no-common-ligatures">2><span class="m_-5162013643603264145m_-6010142396713279447gmail-Apple-converted-space"> </span></span></p>
<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">From <a href="http://erlang.org/documentation/doc-10.0-rc1/lib/kernel-6.0/doc/html/error_logger.html" target="_blank">http://erlang.org/documen<wbr>tation/doc-10.0-rc1/lib/<wbr>kernel-6.0/doc/html/error_logg<wbr>er.html</a> I do not see that error_logger is no more with us.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Is it a existing process or it is completely abandoned?</div></div></blockquote><div> </div></div></div><div>The error_logger event handler is started lazily when the first error_logger:add_report_<wbr>handler call is done. So the new logging framework does not use the error_logger process, but it is started if legacy code uses it. All calls to error_logger:*_report/msg are redirected to logger which then decides what to do with them.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Lukas</div></font></span></div></div></div>
</blockquote></div><br></div>