How do I log the files that are being indexed?
已回答
Hi.
When I do a build, towards the end of the build, idea starts indexing for about half a second.
Looking at my propject, any files that are generated by the build should go to excluded folders so I'm not sure what the indexing is for.
I would like to know a way to log the files that are being indexed so I can correct my project file.
Thanks, Nick.
请先登录再写评论。
Hello Nick,
I'm afraid it's not currently possible without patching the sources of IntelliJ
IDEA CE and building a custom version.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Thanks for the response.
Nick.
Hi, has the status changed on this one for IntelliJ 2018?
We are also running into issues that a lot of files are being indexed, so need to first make sure what are being indexed then focus on why those are files were changed, such as annotation processors bugs.
Try turning this category: #com.intellij.util.indexing.FileBasedIndexImpl in bin/log.xml.
Thanks, @petr. However I am not able to find enough doc around log.xml, and the examples are not clear either https://github.com/JetBrains/intellij-community/blob/master/bin/log.xml to me. Could you give a more specific code snippet to insert into bin/log.xml?
Hi, IDEA uses log4j, you could find examples and docs here: https://wiki.apache.org/logging-log4j/Log4jXmlFormat