Use org.rifidi.logging
From RifidiWiki
org.rifidi.logging is a bundle that provides a logging service for other bundles in the rifidi project. Specifically it provides org.apache.commons.logging and org.apache.log4j. Log4J relies on a file called log4j.properties to provide configuration information. The plugin itself does not have a log4j.properties folder in it. Instead, it relies on a OSGi bundle fragment to add one to the classpath.
To use it in another plugin:
- Make sure that the bundle is checked out in your workspace. You can either download the plugin from the
rep-externalsvn repository, or you can use the binary fromorg.rifidi.binaryalong with a target platform. - In the Manifest for your plugin, declare a package import of
org.apache.commons.logging. Make sure that the minimum version is 1.0.4. - In the run configuration:
- Make sure that
org.rifidi.loggingis checked. - Make sure that only one log4J fragment is checked. If more than one is loaded, it is not defined which one will be used to configure log4j.
- Make sure that
org.apache.commons.loggingororg.apache.log4jis not being provided by a target platform. It is recommended that target platforms used by rifidi not contain either of these two bundles.
- Make sure that