Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Logging in Indigo
Logging in Indigo [message #704169] Thu, 28 July 2011 10:55 Go to next message
soeren  is currently offline soeren Friend
Messages: 2
Registered: July 2011
Junior Member
Hello eclipse community!

I'm fairly new to eclipse/rcp/plugin developement.

With eclipse helios I wrote a logging plugin. For that I used the osgi LogService. With an LogListener I get the messages an write them into the eclipse log file.

Plugin.getLog().log(status);


Now I tested with indigo and there is some strange behaviour when calling ILog.log(status). It looks like restarting the bundle again and again and again...

In the changes comming with indigo I read that logging was unified and you should use the ExtendedLogService (but it's nearly the same like LogService?!).

Now my questions is how to log into the eclipse log file?


Thanks in adavance!
greez soeren
Re: Logging in Indigo [message #704183 is a reply to message #704169] Thu, 28 July 2011 11:03 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 28.07.2011 12:55, soeren wrote:
> Hello eclipse community!
>
> I'm fairly new to eclipse/rcp/plugin developement.
>
> With eclipse helios I wrote a logging plugin. For that I used the osgi
> LogService. With an LogListener I get the messages an write them into
> the eclipse log file.
>
>
> Plugin.getLog().log(status);
>
>
> Now I tested with indigo and there is some strange behaviour when
> calling ILog.log(status). It looks like restarting the bundle again
> and again and again...
>
> In the changes comming with indigo I read that logging was unified and
> you should use the ExtendedLogService (but it's nearly the same like
> LogService?!).
>
> Now my questions is how to log into the eclipse log file?
Your code should still do the trick. If not, please file a bug with a
sample that demonstrates your issue.

Dani
>
>
> Thanks in adavance!
> greez soeren
Re: Logging in Indigo [message #704290 is a reply to message #704183] Thu, 28 July 2011 13:19 Go to previous messageGo to next message
soeren  is currently offline soeren Friend
Messages: 2
Registered: July 2011
Junior Member
ok.
I tested with a small example and now I get the following exception:

LogFilter.isLoggable threw a non-fatal unchecked exception as follows:
java.lang.NullPointerException


The status I logged was written into the log file, but whats about this exception?
I didn't find any working solution for this.
Re: Logging in Indigo [message #704319 is a reply to message #704290] Thu, 28 July 2011 13:32 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 28.07.2011 15:19, soeren wrote:
> ok. I tested with a small example and now I get the following exception:
>
>
> LogFilter.isLoggable threw a non-fatal unchecked exception as follows:
> java.lang.NullPointerException
>
>
> The status I logged was written into the log file, but whats about
> this exception?
> I didn't find any working solution for this.
As said: file a bug.

Dani
Re: Logging in Indigo [message #725711 is a reply to message #704319] Thu, 15 September 2011 15:09 Go to previous message
Al B is currently offline Al BFriend
Messages: 130
Registered: July 2009
Senior Member
Here you have it:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=357199
Previous Topic:Share common features/plugins
Next Topic:export error: Unable to find feature "org.eclipse.license" with version in range [1.0.0,1.
Goto Forum:
  


Current Time: Fri Apr 19 23:36:49 GMT 2024

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

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

Back to the top