Configuring Logger on Umbrella

I’m building an umbrella app, and all apps use Logger module: Phoenix uses :info, but in other app (facebook.ex) :info is too verbose. Is there a way to use Logger with different levels? Or there is only one level for the entire umbrella app?


I think the only way you would achieve this is to use a custom backend, and then use the :application or :module metadata keys to do something with it.

Backends like has a metadata_filter config option that you can use to filter out messages to certain files.

Alternatively if you want it in a console, it shouldn’t be that hard to knock up what you need:

Ended up with
Quick and dirty, but might do what you need.


Thank you! That should fix it

1 Like