I have a log4j2.xml
in the src/test/resources
to turn on debug logging during JUnit tests to ensure all code paths are executed. When I try to upgrade to Quarkus 2.7 or higher (I've tried with 2.8 and 2.9), the tests are no longer run with debug logging. This is evident via the jacoco task showing all lines are no longer covered.
Is there a new way I should be going about enabling debug logging during JUnit tests?
Reproducer: service1
in https://github.com/mweber03/quarkus-test
./gradlew service1:build
./gradlew service1:jacocoTestCoverageVerification
(succeeds)gradle.properties
to 2.7 or higherYou can set the log level in your application.properties
. E.g. if you want to set the log level only for your tests you can add following configuration property:
%test.quarkus.log.level=DEBUG
You can find more information about how to configure logging on the quarkus guides: https://quarkus.io/guides/logging