Chapter 5. Configuring logging for @QuarkusTest

If you want to configure logging for your @QuarkusTest, you need to set up the maven-surefire-plugin accordingly. You must specify the LogManager using the java.util.logging.manager system property.

Procedure

  • Set the LogManager using the java.util.logging.manager system property:

    pom.xml

    <build>
      <plugins>
        <plugin>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>${surefire-plugin.version}</version>
          <configuration>
            <systemPropertyVariables>
              <java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager> 1
              <quarkus.log.level>DEBUG</quarkus.log.level>  2
              <maven.home>${maven.home}</maven.home>
            </systemPropertyVariables>
          </configuration>
        </plugin>
      </plugins>
    </build>

    1
    Add the org.jboss.logmanager.LogManager.
    2
    Enable debug logging for all logging categories.