Knowledge Base/Troubleshooting

Locating IDE log files

Serge Baranov
posted this on March 13, 2013 05:58

The easiest way to find the product log file is the Help menu, the item name would depend on the IDE version and OS:

  • Show Log in Explorer
  • Show Log in Finder
  • Show Log in Konqueror/Nautilus
  • Reveal Log in Explorer
  • Reveal Log in Finder/Finder/Nautilus
2013-03-13_08-42-23.png
Log file is named idea.log and is rotated basing on the file size. When attaching logs to your problem report it's recommended to zip and send several latest log files (idea.log, idea.log.1, idea.log.2, idea.log.3).

Can't access Help menu, how do I find the log file manually?

When IDE doesn't start or you can't access Help menu, locate the log file manually:

IntelliJ IDEA External Build logs

When using external make IDE starts a separate process for compilation, this process writes logs into the %idea.log.path%\build-log\build.log file. Attach this file as well if you are reporting problems related to compilation and external build is enabled.

For the more verbose logging edit build-log.xml file (located in the same directory), change <priority value="info" /> to <priority value="debug" />.

It's recommended that you delete the existing log files, start the IDE, reproduce the problem, then attach all the produced log files.

 

Comments

User photo
Barclay Dunn

I have searched my entire system and there is no file called idea.log that I can find. I am using Mac OS Mavericks. I confirmed in /Applications/IntelliJ IDEA 11.app/bin/log.xml that the file should be called idea.log. The param reads: <param name="file" value="$LOG_DIR$/idea.log"/> But I cannot find out what $LOG_DIR should be.

February 11, 2014 20:42
User photo
Serge Baranov
JetBrains

Barclay Dunn, look under /Users/<user>/Library/Logs/IntelliJIdea11.

February 11, 2014 20:48
User photo
Barclay Dunn

They are ALL under /Users/<user>/Library!

February 11, 2014 21:05
User photo
Jgbailey

How do I configure IntelliJ to log DEBUG level information to idea.log? (I am developing a plugin and want to see debug info in the log file).

 

Thanks!

March 13, 2014 03:57
User photo
Serge Baranov
JetBrains

IDE is using log4j framework for logging, you can fine tune it in bin/log.xml file. It's recommended to add your own logging categories with debug level.

<category name="#org.your.plugin.package">
<priority value="DEBUG"/>
</category>

In the plugin code initialize logger like this:

private static final Logger LOG = Logger.getInstance("#org.your.plugin.package.SomeClass");

This way all the classes under the specified package will produce debug logs.

If you have any other questions specific to plugin development, please use the corresponding forum.

March 13, 2014 10:18
User photo
Javier

Just an additional note: build.log configuration is located in

~/Library/Logs/IntelliJIdea13/build-log/build-log.xml

March 13, 2014 18:03
User photo
Jgbailey

Serge, thanks for the answer - that was just what I was looking for.

March 13, 2014 22:09