Filtering Logger output

I’m currently trying to debug an app which produces a lot of debug messages when Logger is configured to use level :debug. This is mainly because of the usage of commanded, but also a lot of SQL statements make it really hard to read and visually parse the log output. Is there any (standard) way to filter and limit down the messages reported to the console? I’m currently looking into Logger.Translator which could be (mis)used to filter log messages, but I just wanted to check with the community if there is a standard way of doing this.

I now went with the following which works fine:

config :logger,
  compile_time_purge_matching: [
    [application: :eventstore]
  ]
3 Likes

One interesting thing however, I can’t get compile_time_purge_matching to work inside of Docker :disappointed: