Configure logging
Project: http://git-wip-us.apache.org/repos/asf/karaf/repo Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/bf827f40 Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/bf827f40 Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/bf827f40 Branch: refs/heads/master Commit: bf827f4064fa28f4d0f05f27f4fc410984acb0b0 Parents: f857f1f Author: Christian Schneider <[email protected]> Authored: Fri May 19 15:28:32 2017 +0200 Committer: Christian Schneider <[email protected]> Committed: Fri May 19 15:28:32 2017 +0200 ---------------------------------------------------------------------- itests/pom.xml | 2 +- itests/src/test/resources/log4j.properties | 34 +++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/karaf/blob/bf827f40/itests/pom.xml ---------------------------------------------------------------------- diff --git a/itests/pom.xml b/itests/pom.xml index 8cbbf6b..6926953 100644 --- a/itests/pom.xml +++ b/itests/pom.xml @@ -205,7 +205,7 @@ <dependency> <groupId>org.slf4j</groupId> - <artifactId>slf4j-jdk14</artifactId> + <artifactId>slf4j-log4j12</artifactId> <scope>test</scope> </dependency> </dependencies> http://git-wip-us.apache.org/repos/asf/karaf/blob/bf827f40/itests/src/test/resources/log4j.properties ---------------------------------------------------------------------- diff --git a/itests/src/test/resources/log4j.properties b/itests/src/test/resources/log4j.properties new file mode 100644 index 0000000..a75bae2 --- /dev/null +++ b/itests/src/test/resources/log4j.properties @@ -0,0 +1,34 @@ +## --------------------------------------------------------------------------- +## Licensed to the Apache Software Foundation (ASF) under one or more +## contributor license agreements. See the NOTICE file distributed with +## this work for additional information regarding copyright ownership. +## The ASF licenses this file to You under the Apache License, Version 2.0 +## (the "License"); you may not use this file except in compliance with +## the License. You may obtain a copy of the License at +## +## http://www.apache.org/licenses/LICENSE-2.0 +## +## Unless required by applicable law or agreed to in writing, software +## distributed under the License is distributed on an "AS IS" BASIS, +## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +## See the License for the specific language governing permissions and +## limitations under the License. +## --------------------------------------------------------------------------- + +# +# The logging properties used during tests.. +# +log4j.rootLogger=INFO, console, file + +# Console will only display warnings +log4j.appender.console=org.apache.log4j.ConsoleAppender +log4j.appender.console.layout=org.apache.log4j.PatternLayout +log4j.appender.console.layout.ConversionPattern=%d{ISO8601} | %-5.5p | %-16.16t | %-32.32c{1} | %-32.32C %4L | %m%n +log4j.appender.console.threshold=WARN + +# File appender will contain all info messages +log4j.appender.file=org.apache.log4j.FileAppender +log4j.appender.file.layout=org.apache.log4j.PatternLayout +log4j.appender.file.layout.ConversionPattern=%d | %-5p | %m | %c | %t%n +log4j.appender.file.file=target/test.log +log4j.appender.file.append=true
