You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by lb...@apache.org on 2019/08/07 15:44:17 UTC

[camel] branch master updated: CAMEL-13834: camel-util does not provide a sfl4j binding for testing

This is an automated email from the ASF dual-hosted git repository.

lburgazzoli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 725db4f  CAMEL-13834: camel-util does not provide a sfl4j binding for testing
725db4f is described below

commit 725db4f8c2337ec6910f0ae430c4ad5b5b08e20a
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Wed Aug 7 17:22:54 2019 +0200

    CAMEL-13834: camel-util does not provide a sfl4j binding for testing
---
 core/camel-util/pom.xml                            | 18 ++++++++++++
 .../src/test/resources/log4j2.properties           | 32 ++++++++++++++++++++++
 2 files changed, 50 insertions(+)

diff --git a/core/camel-util/pom.xml b/core/camel-util/pom.xml
index d590cc0..b2b8091 100644
--- a/core/camel-util/pom.xml
+++ b/core/camel-util/pom.xml
@@ -78,6 +78,24 @@
             <scope>test</scope>
         </dependency>
 
+        <!-- logging -->
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-api</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-core</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-slf4j-impl</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+
     </dependencies>
 
     <reporting>
diff --git a/core/camel-util/src/test/resources/log4j2.properties b/core/camel-util/src/test/resources/log4j2.properties
new file mode 100644
index 0000000..cdb2a6d
--- /dev/null
+++ b/core/camel-util/src/test/resources/log4j2.properties
@@ -0,0 +1,32 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+appender.console.type = Console
+appender.console.name = console
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n
+
+appender.file.type = File
+appender.file.name = file
+appender.file.fileName = target/camel-util-test.log
+appender.file.append = true
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n
+
+rootLogger.level = INFO
+
+rootLogger.appenderRef.file.ref = file
+#rootLogger.appenderRef.console.ref = console