Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logging libraries for Erlang/OTP [closed]

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

like image 509
Alexey Romanov Avatar asked Sep 15 '10 13:09

Alexey Romanov


3 Answers

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.

like image 82
lest Avatar answered Nov 02 '22 02:11

lest


There is another option named lager from basho.

like image 27
Majid Azimi Avatar answered Nov 02 '22 02:11

Majid Azimi


I've also found:

  • http://github.com/sinnus/ejabberd_logger
  • http://github.com/etnt/elogger
  • http://github.com/JacobVorreuter/log_roller
like image 4
Roberto Aloi Avatar answered Nov 02 '22 00:11

Roberto Aloi