Re: How to change the karaf.log log level in a pax exam karaf test?

2023-11-21 Thread Steinar Bang
> Steinar Bang : > Eric Lilja : >> 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 >>

Re: How to change the karaf.log log level in a pax exam karaf test?

2023-11-21 Thread Steinar Bang
> Eric Lilja : > 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()

Re: How to change the karaf.log log level in a pax exam karaf test?

2023-11-20 Thread Eric Lilja
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

How to change the karaf.log log level in a pax exam karaf test?

2023-11-20 Thread Steinar Bang
I wanted to switch the log leven from INFO to FINE in a pax exam karaf test. So I took the org.ops4j.pax.logging.cfg file from a karaf 4.4.4 etc directory and changed the rootlogger, i.e. log4j2.rootLogger.level = FINE And then I dumped the resulting file into src/test/resources/etc of the pax