a simple and easy to use erlang log app
一个简单易用的erlang 日志 app
Add mslog to your rebar.config or just clone it directly
{deps, [{node_package, ".*", {git, "git://github.com/qingliangcn/mslog.git", master}}]}.
or
git clone git://github.com/qingliangcn/mslog.git
just call mslog_app:set_params/3 or mslog_app:set_params/4
for example:
log file to /data/logs/test.log
mslog_app:set_params(error, "/data/logs/", test).
log file to /data/logs/test_year_month_day.log
mslog_app:set_params(error, "/data/logs/", test, true).
no_log/critical/error/warning/info/debug/dev
?ERROR_MSG(Format, Args);
?DEBUG(Format, Args);
?DEV(Format, Args);
?WARNING_MSG(Format, Args);
?CRITICAL_MSG(Format, Args);
?INFO_MSG(Format, Args);
the mslog app also log the sasl logs.