>>>>> Eric Lilja <mindcoo...@gmail.com>:

> A Pax Exam test that is using a Karaf container (which is a forked
> container), often has two log configurations. One for the test itself (for
> me that would be a log4j2-test.xml), and one for the container. You can use
> KarafDistributionOption.replaceConfigurationFile() to provision a
> org.ops4j.pax.logging.cfg-file (so here I use a properties-style file, not
> xml) with your desired settings. If you do, make sure to also call
> doNotModifyLogConfiguration() on the same class (KarafDistributionOption)

Thanks! This worked to set the default karaf.log log level to TRACE:
 
https://github.com/steinarb/scratch/commit/67fcfff6665ab7ec674a1c6d50fe35f4b1d8b673

Reply via email to