Lage loglevels for the application

How can I set different levels of logging for each application / library in Lager?

For example, I would like to see debug messages on the console, but only for my application, and not for any libraries that I use (for example, amqp_client).

+6
source share
1 answer

This cannot be (easily) done with lager:debug , etc. However, with lager 3.x you can now have multiple sinks , which means you can define a receiver named myapp and use myapp:debug , etc. Then you can configure registration levels, filters, and destinations independently for each receiver.

+2
source

All Articles