Listening to Equinox errors [message #118099] |
Fri, 26 September 2008 07:29 |
Eclipse User |
|
|
|
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 #118219 is a reply to message #118137] |
Sun, 28 September 2008 20:28 |
Eclipse User |
|
|
|
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
>>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02664 seconds