How can I log something for debugging purpose from within a IntelliJ plugin? (I'm not using Community Edition)
如何在IntelliJ插件中记录一些用于调试的东西?(我不使用社区版)
2 个解决方案
#1
13
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
logger是官方推荐的用于IntelliJ插件开发的日志程序。详细信息请参见本文: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.
线程是旧的,所以其他一些信息可能已经过时了,这个类仍然存在,应该用于日志记录。
#2
0
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).
我认为这是有帮助的。它是一个包装器,提供基于IDEA内部或java.util的日志记录。日志记录(如果内部信息不可用)。
#1
13
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
logger是官方推荐的用于IntelliJ插件开发的日志程序。详细信息请参见本文: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.
线程是旧的,所以其他一些信息可能已经过时了,这个类仍然存在,应该用于日志记录。
#2
0
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).
我认为这是有帮助的。它是一个包装器,提供基于IDEA内部或java.util的日志记录。日志记录(如果内部信息不可用)。