A couple of things...

First, felix.log.level is only to control the logging quantity of the framework's logging (e.g., for warnings, info, etc.)...it has nothing to do with bundles and what they log.

Second, I think the log service implementation is simply an "in memory" logger. If you want to print the contents of the log to console you need to create a LogListener and I don't think our simple log service does this by default...although it might make some sense to do this and make it configurable. Feel free to open a JIRA issue for this...it should be simple enough to add.

Hope that helps,

-> richard

On 9/30/09 15:48, Jagan Pappula 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.

Thanks
--Jagan.


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

Reply via email to