From ffd2450e1154ede31b4b1d7e20c887a9e60f2d00 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Tue, 12 Apr 2016 09:47:59 +0200 Subject: [PATCH] Add logging configuration to pom.xml Motivation: Currently the default log level when running tests is debug. When running the build on the CI server it might be nice to avoid this debug level and allow for the level to be configured. Modifications: Added a logback-test.xml configuration that has been added to the common module. This allows for the logLevel to be configured. The default level will still be debug. Result: The log level can now be configured from the command line: $ mvn test -DlogLevel=error --- common/src/test/resources/logback-test.xml | 11 +++++++++++ pom.xml | 6 ++++++ 2 files changed, 17 insertions(+) create mode 100644 common/src/test/resources/logback-test.xml diff --git a/common/src/test/resources/logback-test.xml b/common/src/test/resources/logback-test.xml new file mode 100644 index 0000000000..ea5238ed68 --- /dev/null +++ b/common/src/test/resources/logback-test.xml @@ -0,0 +1,11 @@ + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + + diff --git a/pom.xml b/pom.xml index 27ba0d69f7..dee7436f7f 100644 --- a/pom.xml +++ b/pom.xml @@ -227,6 +227,8 @@ 1.1.33.Fork15 ${os.detected.classifier} ${os.detected.name}-${os.detected.arch} + ${project.basedir}/../common/src/test/resources/logback-test.xml + debug @@ -807,6 +809,10 @@ **/TestUtil* random + + ${logging.config} + ${logging.logLevel} + ${argLine.common} ${argLine.alpnAgent} ${argLine.leak} ${argLine.coverage} ${argLine.noUnsafe}