[slf4j-dev] osgi support

Andre Kullmann andre.kullmann at osp-dd.de
Mon Apr 12 13:27:19 CEST 2010


Hi Gunnar,

thanks for the repley.
It's an nice idea to use SecurityManager#getClassContext to get the bundle.
I'll try it for my use case.

Greetings from Dresden,
André


Gunnar Wagenknecht schrieb:
> Am 09.04.2010 13:25, schrieb André Kullmann:
>   
>> I think it should be possible to log the Bundle in osgi containers. Is
>> there any solution ?
>>     
>
> I've written a native SLF4J logger which routes log messages to the
> Equinox Extended Log Service. It should be possible to use this as a
> base for creating one that logs to the Eclipse log file.
>
> See http://bit.ly/cXj5Uh line 209/210. This could be done at logger
> creation time as well. Currently it does this on every call but this is
> likely too much (and unnecessary) overhead.
>
> BTW, I also created an Equinox Framework hook which hooks into the
> Framework look to bring all the legacy Eclipse logging into SLF4J.
> See http://bit.ly/bzVOJC.
>
> Greetings from Jena,
> Gunnar
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/slf4j-dev/attachments/20100412/9f5398af/attachment.html>


More information about the slf4j-dev mailing list