Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Logging all errors in e4 app
Logging all errors in e4 app [message #1257894] Wed, 26 February 2014 22:35 Go to next message
Phil V is currently offline Phil VFriend
Messages: 4
Registered: August 2013
Junior Member
Hello Tom,

I'm using efxclipse to build an e4 application with javafx rendering.

I have some logging issues at this moment : i'm logging into a file using log4j with org.eclipse.fx.core.log4j bundle.

It works well but some errors (osgi ones i guess) are not logged.

I try to add an ILogListener in Activator to catch them, but the IStatus returned only contains message, not exception.

So, what's the best method to catch all the exceptions i saw in my console ?

Thx a lot,
Phil
Re: Logging all errors in e4 app [message #1258336 is a reply to message #1257894] Thu, 27 February 2014 09:21 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Hi,

a) isn't the interface named LogListener
b) in LogListener you don't get a Status but you get LogEntry

See this entry [1] on how to use it, a class which helps people redirect
logs from OSGi to the e(fx)clipse logging infrastructure might make a
nice addon host on e(fx)clipse!

Tom

[1]http://code.google.com/p/osgi-logging/wiki/UnderstandingTheOSGiLogging

On 26.02.14 23:35, Phil V wrote:
> Hello Tom,
>
> I'm using efxclipse to build an e4 application with javafx rendering.
>
> I have some logging issues at this moment : i'm logging into a file
> using log4j with org.eclipse.fx.core.log4j bundle.
> It works well but some errors (osgi ones i guess) are not logged.
>
> I try to add an ILogListener in Activator to catch them, but the IStatus
> returned only contains message, not exception.
>
> So, what's the best method to catch all the exceptions i saw in my
> console ?
>
> Thx a lot,
> Phil
Re: Logging all errors in e4 app [message #1259885 is a reply to message #1258336] Fri, 28 February 2014 22:36 Go to previous message
Phil V is currently offline Phil VFriend
Messages: 4
Registered: August 2013
Junior Member
Thx for the quick answer, i'll try.

I don't understand something : by default, why all the application exceptions (such as uncaught NPE in my bundle code) aren't loggued in the .log file ?
I thought it was the default behaviour.

Sorry for the dumb question.

Phil
Previous Topic:Problem building efxclipse sample app with tycho and Java 8
Next Topic:Error when trying to install e(fx)clipse on KEPLER
Goto Forum:
  


Current Time: Thu Apr 25 14:21:47 GMT 2024

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

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

Back to the top