My workaround was to:
• use a logging framework
• add a “log filter” property in my gradle.properties
• use the “log filter” property in my logging framework to filter the logs
Basically do it at the app level, not at the IDE level. Changing the filter requires a restart of the app (which doesn’t matter for my app), but you could make it dynamic.