Alireza Mirian
Alireza Mirian

Reputation: 6672

IntelliJ IDEA plugin development - Log from within plugin

How can I log something for debugging purpose from within a IntelliJ plugin? (I'm not using Community Edition)

Upvotes: 23

Views: 6020

Answers (2)

Zarwan
Zarwan

Reputation: 5787

com.intellij.openapi.diagnostic.Logger is the officially recommended logger to use for IntelliJ plugin development. See this for more details: https://devnet.jetbrains.com/message/5306410#5306410

The thread is old so some of the other information might be outdated, that class still exists and should be used for logging.

Upvotes: 21

Filip Malczak
Filip Malczak

Reputation: 3194

I think that this will be helpful. It is a wrapper that provides logging based on IDEA internals or java.util.logging (if internals aren't available).

Upvotes: 2

Related Questions