[erlang-questions] sasl, lager or something else?

30 views
Skip to first unread message

Dmitry Kolesnikov

unread,
Jul 13, 2012, 2:44:23 PM7/13/12
to erlang-questions@erlang.org Questions
Hello,

I've been using SASL for error logger within applications.
Now, I need to adjust them for hosting by non-erlang folks. It means that I have to adjust logging...
Multiple alternatives exists:
a) make text extension for SASL
b) use lagger
c) use some other frameworks: alogger, log4erl, etc

I am very closed to jump into option b).
What is you opinion about lagger?
Are there any better alternatives?

Thanks in advanced!

- Dmitry

_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

Adrian Roe

unread,
Jul 13, 2012, 3:16:52 PM7/13/12
to Dmitry Kolesnikov, erlang-q...@erlang.org
Lager gets a big thumbs up from me - low(ish) learning curve and for us at least "it just works".  Even writing a custom logger is straightforward if the default doesn't do quite what you want.

Do read the docs pretty thoroughly up front to get familiar with its config etc and make sure lager is the first thing that is compiled in your project (or the lager parse transforms will fail in modules that try to use it - rebar (and others I'm sure) has easy support for this). The way it can trap error_logger calls is nice - meaning you can get usefully up an running without having to first change all of your logging code.

Adrian
Director
id3as
Reply all
Reply to author
Forward
0 new messages