How to configure pax logging (for Eclipse PDE users)
Working solution discovered in experiments.
Any comments will be appreciated.
Get Pax Logging
Get pax-logging-api and pax-logging-service bundles and put in your target platform.
Use Configuration Admin for setting up logging
Install Configuration Admin implementation
- from Equinox
- Either, get ready bundle
- download bundle org.eclipse.equinox.cm_3.2.0.v20070116.jar from http://europa-mirror1.eclipse.org/eclipse/equinox/drops/R-3.3-200706251500/index.php
- add to target platform
- Or, build from source:
- get org.eclipse.equinox.cm from CVS:
CVSROOT: :pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse
module: equinox-incubator/org.eclipse.equinox.cm - Import project to Eclipse.
- get org.eclipse.equinox.cm from CVS:
- Either, get ready bundle
- or from Knopflerfish
- put org.knopflerfish.bundle.cm - cm_all-2.0.0.jar in your target platform dir
Install and configure propsloader
- Get propsloader bundle and put in your target platform.
- check (or set) your working dir for OSGi Framework Run configuration
- In that directory create subdir configurations and nested factories and services
- In services dir create file org.ops4j.pax.logging.properties with setting in Log4j properties format, for example:
- set lowest (for example 1) start level for bundle:
and one higher (for example 2) start level for bundles:
to make sure that logging is correct set up, before other bundles will log.
- if you want to change logging settings at runtime, simply change your org.ops4j.pax.logging.properties file and from osgi console update org.ops4j.pax.confman.propsloader bundle.
Labels:
None
Add Comment

