开发者

Logging libraries for Erlang/OTP [closed]

开发者 https://www.devze.com 2023-01-16 10:44 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You c开发者_运维问答an edit the question so it can be answered with facts and citations.

Closed 7 years ago.

Improve this question

For logging activity of an Erlang/OTP application, do you simply use a wrapper over disk_log or some other libraries?


There is standard error logging application SASL http://www.erlang.org/doc/system_principles/error_logging.html.

It can be configured to save logs on disk.

error_logger:info_report example usage:

2> error_logger:info_report([{tag1,data1},a_term,{tag2,data}]).
=INFO REPORT==== 11-Aug-2005::13:55:09 ===
    tag1: data1
    a_term
    tag2: data
ok
3> error_logger:info_report("Something strange happened").
=INFO REPORT==== 11-Aug-2005::13:55:36 ===
Something strange happened
ok

Also there is log4erl when you need different log format. You can look for real usage of it in erlyvideo project.


There is another option named lager from basho.


I've also found:

  • http://github.com/sinnus/ejabberd_logger
  • http://github.com/etnt/elogger
  • http://github.com/JacobVorreuter/log_roller


Two libraries I've found: http://code.google.com/p/erlslug/ and http://github.com/ahmednawras/log4erl


https://github.com/siberian-fast-food/alogger

0

精彩评论

暂无评论...
验证码 换一张
取 消