Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] e4-dev Digest, Vol 68, Issue 7

On 7-Jun-2014, at 2:48 PM, Ashwin Jha <ajha.dev@xxxxxxxxx> wrote:
> I have implemented the ILoggerProvider with a slf4j wrapper. Regarding the appender, 
> can you elaborate how to access the FrameworkLog instance. I am implementing 
> the appender as a fragment for ch.qos.logback.classic bundle. Is there something 
> else that I am missing?

Uh, good question.  There are a number of different ways to access the log in Eclipse, and it’s a bit of a mess.

There’s the Eclipse Platform log, accessed via Platform.getLog(Bundle) that returns an ILog.
There’s the OSGi LogService, whose implementation in Equinox talks to the Eclipse Log.
There’s the Equinox FrameworkLog, which is accessed as a service.

I get a bit lost figuring out which log to use.  I end up using Platform.getLog() since it’s easy.

Brian.



Back to the top