Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Listening to Equinox errors
Listening to Equinox errors [message #118099] Fri, 26 September 2008 07:29 Go to next message
Eclipse UserFriend
Originally posted by: anders.comsol.se

I have implemented a LogListener using the Log Service
(org.eclipse.equinox.log). I am getting INFO events when bundles are
started and stopped but I am not seeing any of the error messages that
end up in the .log file in the configuration directory. It seems the
error messages are written using the
org.eclipse.osgi.framework.log.FrameworkLog service.

How can I listen to these events?

( and why are they not logged to the Log Service ? )

---
Anders
Re: Listening to Equinox errors [message #118137 is a reply to message #118099] Fri, 26 September 2008 13:35 Go to previous messageGo to next message
Oleg Besedin is currently offline Oleg BesedinFriend
Messages: 41
Registered: July 2009
Member
Hi Anders,
Have you tried Platform.addLogListener(ILogListener listener)? (From
org.eclipse.core.runime)

Thanks,
Oleg


"Anders Forsell" <anders@comsol.se> wrote in message
news:gbi30v$tph$1@build.eclipse.org...
>I have implemented a LogListener using the Log Service
>(org.eclipse.equinox.log). I am getting INFO events when bundles are
>started and stopped but I am not seeing any of the error messages that end
>up in the .log file in the configuration directory. It seems the error
>messages are written using the org.eclipse.osgi.framework.log.FrameworkLog
>service.
>
> How can I listen to these events?
>
> ( and why are they not logged to the Log Service ? )
>
> ---
> Anders
>
Re: Listening to Equinox errors [message #118219 is a reply to message #118137] Sun, 28 September 2008 20:28 Go to previous message
Eclipse UserFriend
Originally posted by: anders.comsol.se

Hi Oleg,

I have now tried 'org.eclipse.core.runtime.Platform.addLogListener' as
well as 'org.osgi.framework.BundleContext.addFrameworkListener' but I am
not picking up the EclipseLog output during startup. Looking at the code
I see that the EclipseStarter.logUnresolvedBundles method uses:

FrameworkLog logService = adaptor.getFrameworkLog();
...
logService.log(new FrameworkLogEntry(...);

Can I listen to these log events?

Can you also shed some light on the different log mechanisms in Equinox
and if there are plans to move to one common?

Thanks,

---
Anders


Oleg Besedin skrev:
> Hi Anders,
> Have you tried Platform.addLogListener(ILogListener listener)? (From
> org.eclipse.core.runime)
>
> Thanks,
> Oleg
>
>
> "Anders Forsell" <anders@comsol.se> wrote in message
> news:gbi30v$tph$1@build.eclipse.org...
>> I have implemented a LogListener using the Log Service
>> (org.eclipse.equinox.log). I am getting INFO events when bundles are
>> started and stopped but I am not seeing any of the error messages that end
>> up in the .log file in the configuration directory. It seems the error
>> messages are written using the org.eclipse.osgi.framework.log.FrameworkLog
>> service.
>>
>> How can I listen to these events?
>>
>> ( and why are they not logged to the Log Service ? )
>>
>> ---
>> Anders
>>
>
>
>
Previous Topic:P2 broken on Mac
Next Topic:Re: Updating to 3.4.1
Goto Forum:
  


Current Time: Thu Apr 25 16:48:13 GMT 2024

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

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

Back to the top