On 11/19/09 11:46, John Stump wrote:
Hello everyone,
I have a felix-based application that uses the shell and shell-tui services (a
command line interface). While running, I get lots of logging output in the
console, which is fine for development and test, but when this application is
deployed to the user, I need to turn off most of this logging. The problem is,
I can't figure out how to silence all the output.
I set the felix.log.level property to 0, but it doesn't help much. Here is an
example of some of the output I'm still getting:
That property only controls what the framework logs, it does not control
what other bundle's log. There is no global property to control what all
bundles log...it would have to be standardized by the OSGi spec, but
there is no such standard.
This means each bundle typically has its own configuration property to
control how much logging it does.
Fortunately, if they use the Logging Service, then you can get
centralized control, since you can just configure your log service impl
to do what you want.
-> richard
[FelixDispatchQueue] DEBUG org.apache.servicemix.bundles.jaxb-impl -
BundleEvent RESOLVED
[FelixStartLevel] DEBUG
org.springframework.osgi.extender.internal.activator.ContextLoaderListener - No
application context created for bundle [Apache
ServiceMix Bundles: jaxb-impl-2.1.6 (org.apache.servicemix.bundles.jaxb-impl)]
Nov 19, 2009 9:14:50 AM
com.navsys.boreal.utils.comms.serial.rxtx.SerialRxTx<init>
INFO: SerialRxTx Instance Creation
[FelixDispatchQueue] DEBUG org.apache.servicemix.bundles.jaxb-impl -
BundleEvent STARTED
[Configuration Updater] INFO
com.navsys.boreal.utils.comms.serial.rxtx.SerialRxTx - SerialRxTx Instance
Creation
[FelixDispatchQueue] DEBUG org.apache.servicemix.bundles.wsdl4j - BundleEvent
RESOLVED
This goes on and on for several screens. I don't mind this information going to
a log file, but I don't want to see it on the console, which is my users
interface. How can stop the noise?
I am autostarting these bundles which appear to offer redundant logging support:
org.apache.commons.logging_1.0.4.v20080605-1930.jar
org.apache.felix.log-1.0.0.jar
org.apache.log4j_1.2.13.v200806030600.jar
pax-logging-api-1.2.1.jar
pax-logging-service-1.2.1.jar
com.springsource.org.apache.commons.logging-1.1.1.jar
This probably explains why I see 3 or 4 different log output formats. But if I
try to take some of these out, many bundles do not start. Do I need to
individually configure each one of these?
john
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]