Eclipse PDE Logging

后端 未结 1 1571
时光说笑
时光说笑 2020-12-17 05:27

I want to send the exceptions of my plugin to the Error Log, but I don\'t want them to be shown in the Eclipse console. This is what I am doing.

First, I implemented

相关标签:
1条回答
  • 2020-12-17 06:05

    According to Eclipse 3.7 documentation:

    All eclipse logging APIs are now aggregated through the org.eclipse.equinox.log.Logger with the name org.eclipse.equinox.logger. All ILogListener instances will be notified of entries logged through this logger.

    This means that by logging to a bundle's log a bunch of listeners will be notified, one of them being Eclipse StatusManager which logs the status to error log.

    If you only want to log to Eclipse error log (and Error Log view) then you should call one of StatusManager.handle() methods directly.

    0 讨论(0)
提交回复
热议问题