[erlang-questions] custom lager levels or filtering

Vladimir Gordeev gordeev.vladimir.v@REDACTED
Mon Apr 13 00:37:03 CEST 2015

Let me describe my problem. I have two different kinds of logging inside my
code: regular console/file output and special log calls that should be
processed by my log backend. By their meaning and usage they are completely

Semantically both logs actually are info level, but still they should be
handled separately. I can add metadata to my specific logs, and select such
marked log entries in my custom backed.

But such entries will still get into default lager file/console backends.

As far as I see there are several ways to solve this problem:

1) Add feature: custom log levels
2) Add feature to default backends: filtering by metadata

Second looks easier. Any other ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150413/f70e571c/attachment.htm>

More information about the erlang-questions mailing list