Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to log Platform/JFace/SWT - errormessages into my own logs?
How to log Platform/JFace/SWT - errormessages into my own logs? [message #536166] Thu, 27 May 2010 09:55 Go to next message
Heiko is currently offline HeikoFriend
Messages: 43
Registered: July 2009
Member
Hi,

inside my RCp application I use SLF4J to log anything and it works very
well.
The only thing I dont get are error messages which are generate from the
framework plugins like swt or jface.

Can somebody point in the right direction, how do I have to listen for
these logmessages?

Greetings

Heiko
Re: How to log Platform/JFace/SWT - errormessages into my own logs? [message #536297 is a reply to message #536166] Thu, 27 May 2010 14:56 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You can add a log listener to org.eclipse.core.runtime.Plugin.getLog()
(if you've derived your activator from it).

There's also the org.osgi.service.log.LogService but I'm not sure if the
platform funnels log events through the OSGi service.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: How to log Platform/JFace/SWT - errormessages into my own logs? [message #537091 is a reply to message #536297] Tue, 01 June 2010 09:48 Go to previous message
Heiko is currently offline HeikoFriend
Messages: 43
Registered: July 2009
Member
Hi Paul,
thanks for your quick answer.
Today I found some time, to play again with the logging and at the
moment i would say the workbench plugin (org.eclipse.ui.workbench) is
the important plugin.
In the log of these bundle did eclipse write NPE's or missing things
like wrong defined commandd in the plugin.xml's.

Greetings

Heiko



Am 27.05.2010 16:57, schrieb Paul Webster:
> You can add a log listener to org.eclipse.core.runtime.Plugin.getLog()
> (if you've derived your activator from it).
>
> There's also the org.osgi.service.log.LogService but I'm not sure if the
> platform funnels log events through the OSGi service.
>
> PW
>
Previous Topic:RCP application configuration files
Next Topic:Deploy resources outside jars
Goto Forum:
  


Current Time: Thu Apr 25 22:10:12 GMT 2024

Powered by FUDForum. Page generated in 0.02905 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top