2

I want to write a monitoring application (erlang application). The monitored application and my monitoring application are not both written in erlang and run in the same vm.

Now the log is mixed, and I consider to use disk_log in monitoring application.

My question is that is it possible for both applications use lager and lager output log into different file?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Chen Yu
  • 3,955
  • 1
  • 24
  • 51

1 Answers1

4

It's possible to log specific messages to separate files using lager, but the common log files like info.log would have those messages as well. If that's fine with you take a look at tracing: https://github.com/basho/lager/blob/master/README.md#tracing

Dmitry Belyaev
  • 2,573
  • 12
  • 17