[erlang-questions] Lager backend: error_logger?

Mark Allen mrallen1@REDACTED
Fri Oct 9 07:49:41 CEST 2015


On Thursday, October 8, 2015 10:10 AM, Roberto Ostinelli <roberto@REDACTED> wrote:


> Is it possible to use error_logger inside a lager backend?> > I imagine this would create recursive calls, but I'm basically wondering how to output a > log from a lager backend, if that makes any sense. 
I'm sorry I don't understand what you mean - what is it you're trying to do? 
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.
If you want to take this conversation offline that would be fine too.
Thanks.

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20151009/042d5419/attachment.htm>


More information about the erlang-questions mailing list