https://github.com/basho/lager
下面这种用法,我试过在交互模式是不行的。 Once you have built your code with lager and started the lager application, you can then generate log messages by doing the following:
lager:error("Some message") Or:
lager:warning("Some message with a term: ~p", [Term]) The general form is lager:Severity() where Severity is one of the log levels mentioned above.