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

davsclaus 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 f76cfbf  Lets also use logback in this example
f76cfbf is described below

commit f76cfbf7cd6946cb1c1774a70f7c65b1c40e97da
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Jun 25 06:49:24 2019 +0200

    Lets also use logback in this example
---
 examples/camel-example-main/pom.xml                | 17 +++++---------
 .../src/main/resources/log4j2.properties           | 26 ----------------------
 .../src/main/resources/logback.xml                 | 11 +++++++++
 3 files changed, 17 insertions(+), 37 deletions(-)

diff --git a/examples/camel-example-main/pom.xml 
b/examples/camel-example-main/pom.xml
index 240d629..e2eee64 100644
--- a/examples/camel-example-main/pom.xml
+++ b/examples/camel-example-main/pom.xml
@@ -59,19 +59,14 @@
             <scope>runtime</scope>
         </dependency>
         <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-core</artifactId>
-            <scope>runtime</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-slf4j-impl</artifactId>
-            <scope>runtime</scope>
+            <groupId>ch.qos.logback</groupId>
+            <artifactId>logback-core</artifactId>
+            <version>1.2.3</version>
         </dependency>
         <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-jul</artifactId>
-            <scope>runtime</scope>
+            <groupId>ch.qos.logback</groupId>
+            <artifactId>logback-classic</artifactId>
+            <version>1.2.3</version>
         </dependency>
 
     </dependencies>
diff --git a/examples/camel-example-main/src/main/resources/log4j2.properties 
b/examples/camel-example-main/src/main/resources/log4j2.properties
deleted file mode 100644
index c63f861..0000000
--- a/examples/camel-example-main/src/main/resources/log4j2.properties
+++ /dev/null
@@ -1,26 +0,0 @@
-## ---------------------------------------------------------------------------
-## 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.out.type = Console
-appender.out.name = out
-appender.out.layout.type = PatternLayout
-appender.out.layout.pattern = %d [%-15.15t] %-5p %-30.30c{1} - %m%n
-rootLogger.level = INFO
-rootLogger.appenderRef.out.ref = out
-
-logger.camel-main.name = org.apache.camel.main
-logger.camel-main.level = INFO
diff --git a/examples/camel-example-main/src/main/resources/logback.xml 
b/examples/camel-example-main/src/main/resources/logback.xml
new file mode 100644
index 0000000..6156c21
--- /dev/null
+++ b/examples/camel-example-main/src/main/resources/logback.xml
@@ -0,0 +1,11 @@
+<configuration>
+    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+        <encoder>
+            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - 
%msg%n</pattern>
+        </encoder>
+    </appender>
+
+    <root level="INFO">
+        <appender-ref ref="STDOUT" />
+    </root>
+</configuration>
\ No newline at end of file

Reply via email to