Better way for configurring logging?

I’m frustrated by trying to configure logs for the sandbox ide. There must be a better wayt than running its and going to help > diagnostics > debug log configuration, because this doesn’t persist after gradle clean and only lets us turn on debug/trace for categories, but not set to any level like off or error. I tried:

tasks. withType<RunIdeTask> {
jvmArgs("-Djava.util.logging.config.file=src/main/resources/logging/logging.properties")
}

but it doesn’t seem to work.

Please advise

I dont think you can disable logging, never seen a way

You can use a system property to set the levels instead of a file though

  systemProperties(
            "idea.log.debug.categories" to "com.foo.bar",
)

Use idea.log.trace.categories for trace level