java - Pax exam logging with log4J for OSGI integration tests -


i'm trying set integration tests pax exam 4.8.0 inside native container using felix 5.4.0. first junit tests run ok, issue logging - cannot change logging configuration, annoying. (please note i'm talking container logging - driver configuration ok. issue concerns runs inside osgi container).

official documentation implies should set out of box log4j catch logs sent through slf4j api (which case). says nothing how specify log4j.properties file or equivalent.

things i've tried no avail:

  • putting file in various places (class loading root, meta-inf, ...)
  • setting configuration @ runtime inside @before method through configurationadmin api
  • adding various org.ops4j.pax.logging artifacts configuration
  • specifying felix.cm.dir property pointing directory containing org/ops4j/pax/logging.config (the org.apache.felix.configadmin bundle used). configurationadmin confirms file loaded pid org.ops4j.pax.logging, still no sugar.

in cases, configuration ignored (which can proved providing bogus configuration - no error ever).

would have working junit + pax + log4j.properties set up? thanks.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -