What are you actually trying to do?

If you just want to write log messages from your bundle, you should
use the LogService and not worry about Felix internals.

Neil

On Fri, Sep 6, 2013 at 2:53 PM, Roland <[email protected]> wrote:
> The Logger tries to load the LogService interface. Once the logger is
> initialized it will never check this a second time.
>
>     public Logger(BundleContext context)
>     {
>         m_context = context;
>         try
>         {
>             org.osgi.service.log.LogService.class.getName();
>             m_isLogClassPresent = true;
>         }
>         catch (NoClassDefFoundError ex)
>         {
>             m_isLogClassPresent = false;
>         }
>     }
>
>
>
> --
> View this message in context: 
> http://apache-felix.18485.x6.nabble.com/How-to-set-default-logger-tp5004867p5004875.html
> Sent from the Apache Felix - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to