<html><head></head><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1444369535984_2728"><span style="font-family: Arial; font-size: small;">On Thursday, October 8, 2015 10:10 AM, Roberto Ostinelli <roberto@widetag.com> wrote:</span><br></div><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_1_1444369535984_3333" style="display: block;"><div style="font-family: verdana, helvetica, sans-serif; font-size: 13px;" id="yui_3_16_0_1_1444369535984_3332"><div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_1_1444369535984_3331"><div class="y_msg_container" id="yui_3_16_0_1_1444369535984_3330"><div id="yiv6334907747"><div dir="ltr" id="yui_3_16_0_1_1444369535984_3329"><div id="yui_3_16_0_1_1444369535984_3328">> Is it possible to use error_logger inside a lager backend?</div><div id="yui_3_16_0_1_1444369535984_3367">> </div><div id="yui_3_16_0_1_1444369535984_3368">> I imagine this would create recursive calls, but I'm basically wondering how to output a </div><div id="yui_3_16_0_1_1444369535984_3368">> log from a lager backend, if that makes any sense. </div><div id="yui_3_16_0_1_1444369535984_3488"><br></div><div dir="ltr" id="yui_3_16_0_1_1444369535984_3441">I'm sorry I don't understand what you mean - what is it you're trying to do? </div><div dir="ltr" id="yui_3_16_0_1_1444369535984_3441"><br></div><div dir="ltr" id="yui_3_16_0_1_1444369535984_3441">Lager already intercepts calls to error_logger and redirects them into its own event handler(s) for log messages. So if you use error_logger:info_msg in your source code, then lager will already capture that and process it.</div><div dir="ltr" id="yui_3_16_0_1_1444369535984_3441"><br></div><div dir="ltr" id="yui_3_16_0_1_1444369535984_3441">If you want to take this conversation offline that would be fine too.</div><div dir="ltr" id="yui_3_16_0_1_1444369535984_3441"><br></div><div dir="ltr" id="yui_3_16_0_1_1444369535984_3441">Thanks.</div><div id="yui_3_16_0_1_1444369535984_3337"><br></div></div></div><br></div> </div> </div> </div></div></body></html>