简体   繁体   English

IntelliJ IDEA插件开发 - 从插件内部进行日志记录

[英]IntelliJ IDEA plugin development - Log from within plugin

How can I log something for debugging purpose from within a IntelliJ plugin? 如何在IntelliJ插件中记录某些内容以进行调试? (I'm not using Community Edition ) (我没有使用Community Edition

com.intellij.openapi.diagnostic.Logger is the officially recommended logger to use for IntelliJ plugin development. com.intellij.openapi.diagnostic.Logger是官方推荐的用于IntelliJ插件开发的记录器。 See this for more details: https://devnet.jetbrains.com/message/5306410#5306410 有关详细信息,请参阅此处: 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. 线程很旧,因此其他一些信息可能已过时,该类仍然存在,应该用于记录。

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.logging日志记录(如果内部不可用)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM