ikryvorotenko
ikryvorotenko

Reputation: 1423

How to change IntelliJ IDEA logging level?

I'm usging IJ 2017.1.3 and currently I'm trying to troubleshoot a local issue related with gradle import in IDEA. I found that idea provides the logs using Help -> Show log in finder/explorer, but there's only INFO level.

I also found the option under Help -> Debug log settings... where i'm supposed to provide the categories. I tried the following configuration but still only INFO level in idea.log file

ij.compiler
org.jetbrains.plugins.gradle

I may misunderstood what's meant by category here. Any ideas?

Upvotes: 21

Views: 30822

Answers (1)

JeanValjean
JeanValjean

Reputation: 17713

So, there are some resources from Jetbrains people out of there, but the page that explained properly this part was this.

You must put the fully qualified name of the class you need to debug. It may be that this does not correspond to the registered name of the logger for that class. For instance, if you use com.intellij.openapi.diagnostic.Logger, then it prepends a # before the fully qualified name, e.g. for class com.example.MyClass you would have #com.example.MyClass.

I tested the thingy and it works. Beware that if you are using IntelliJ sandbox for testing your own plugin, then you must set the debug configuration in the running sandbox and not in the IDE you use for dev purposes.

Upvotes: 15

Related Questions