Configuring Logger on Umbrella

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 https://github.com/onkel-dirtus/logger_file_backend 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 https://gist.github.com/benperiton/94a02edeef7684c4b3bd6422e4b10118
Quick and dirty, but might do what you need.

3 Likes