Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Logging in Indigo
Logging in Indigo [message #704169] Thu, 28 July 2011 06:55 Go to next message
Eclipse UserFriend
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 07:03 Go to previous messageGo to next message
Eclipse UserFriend
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 09:19 Go to previous messageGo to next message
Eclipse UserFriend
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 09:32 Go to previous messageGo to next message
Eclipse UserFriend
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 11:09 Go to previous message
Eclipse UserFriend
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: Wed Jul 02 16:23:48 EDT 2025

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

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

Back to the top