<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Gunnar,<br>
<br>
thanks for the repley.<br>
It's an nice idea to use SecurityManager#getClassContext to get the
bundle.<br>
I'll try it for my use case.<br>
<br>
Greetings from Dresden,<br>
André<br>
<br>
<br>
Gunnar Wagenknecht schrieb:
<blockquote cite="mid:hputva$sv0$1@dough.gmane.org" type="cite">
<pre wrap="">Am 09.04.2010 13:25, schrieb André Kullmann:
</pre>
<blockquote type="cite">
<pre wrap="">I think it should be possible to log the Bundle in osgi containers. Is
there any solution ?
</pre>
</blockquote>
<pre wrap=""><!---->
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 <a class="moz-txt-link-freetext" href="http://bit.ly/cXj5Uh">http://bit.ly/cXj5Uh</a> 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 <a class="moz-txt-link-freetext" href="http://bit.ly/bzVOJC">http://bit.ly/bzVOJC</a>.
Greetings from Jena,
Gunnar
</pre>
</blockquote>
<br>
</body>
</html>