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?
To change log levels as a root user, perform the following: To enable debug logging, run the following command: /subsystem=logging/root-logger=ROOT:change-root-log-level(level=DEBUG) To disable debug logging, run the following command: /subsystem=logging/root-logger=ROOT:change-root-log-level(level=INFO)
Add a logIn the run/debug configuration that will be used for launching the app, click Modify options. From the menu, select Specify logs to be shown in console. In the table that opens, click Add. Specify the log Alias (the name that will be displayed in the tool window tabs) and the path to the log file.
What Is a Logging Level. A log level or log severity is a piece of information telling how important a given log message is. It is a simple, yet very powerful way of distinguishing log events from each other. If the log levels are used properly in your application all you need is to look at the severity first.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With