This can't be (easily) done with lager:debug, etc. However, with lager 3.x, you can now have multiple sinks, which means that you could define a sink named myapp, and use myapp:debug, etc.. Then you can configure the logging levels, filters and destinations independently for each sink.
This can't be (easily) done with
lager:debug
, etc. However, with lager 3.x, you can now have multiple sinks, which means that you could define a sink namedmyapp
, and usemyapp:debug
, etc.. Then you can configure the logging levels, filters and destinations independently for each sink.