On Wed, Sep 30, 2009 at 3:48 PM, Jagan Pappula <[email protected]> wrote:
> Hi all,
>
> I want to log messages to Felix console from one of my bundle.
>
> I installed *org.apache.felix.log-1.0.0 *bundle on to felix and added
> following property in config.properties file
>
> *felix.log.level=4*
> **
> **
> And used following code in my bundle for logging.
>
> *ServiceReference ref =
> bundleContext.getServiceReference(LogService.class.getName());
> LogService log = (LogService) bundleContext.getService(ref);
> log.log(log.LOG_DEBUG, "Debug info......");*
> **
> **
> But I could not any messages in felix console and I am not getting any
> excpetions. I could see LogService running, using *'services'* command in
> felix console.
> Please let me if I have done anything worng and missed anything.


Hi, as Richard explained  felix.log.level  does not control application logs.

However, you should be able to see your logs typing:
$ log
in the felix console


-- 
Filippo Diotalevi

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

Reply via email to