You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/09/12 17:40:26 UTC

[08/13] git commit: CAMEL-7220 Fixed the log issue

CAMEL-7220 Fixed the log issue


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/9af5989a
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9af5989a
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9af5989a

Branch: refs/heads/camel-2.14.x
Commit: 9af5989a1acd18f5a9d19a924aaf4a752b6b4ca1
Parents: ff33ae7
Author: Willem Jiang <wi...@gmail.com>
Authored: Fri Sep 12 23:16:13 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Fri Sep 12 23:39:23 2014 +0800

----------------------------------------------------------------------
 components/camel-schematron/pom.xml             |  5 ++++
 .../src/test/resources/log4j.properties         | 25 +++++++++++++++++++-
 2 files changed, 29 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/9af5989a/components/camel-schematron/pom.xml
----------------------------------------------------------------------
diff --git a/components/camel-schematron/pom.xml b/components/camel-schematron/pom.xml
index 81d879d..8f7087d 100644
--- a/components/camel-schematron/pom.xml
+++ b/components/camel-schematron/pom.xml
@@ -60,5 +60,10 @@
             <version>${xmlunit-version}</version>
             <scope>test</scope>
         </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-log4j12</artifactId>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 </project>

http://git-wip-us.apache.org/repos/asf/camel/blob/9af5989a/components/camel-schematron/src/test/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/components/camel-schematron/src/test/resources/log4j.properties b/components/camel-schematron/src/test/resources/log4j.properties
index 37c1447..e301df3 100644
--- a/components/camel-schematron/src/test/resources/log4j.properties
+++ b/components/camel-schematron/src/test/resources/log4j.properties
@@ -1,7 +1,24 @@
+## ------------------------------------------------------------------------
+## 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
 #
-log4j.rootLogger=TRACE, out
+log4j.rootLogger=TRACE, file
 
 # uncomment the following line to turn on Camel debugging
 #log4j.logger.org.apache.camel=DEBUG
@@ -12,3 +29,9 @@ log4j.appender.out.layout=org.apache.log4j.PatternLayout
 log4j.appender.out.layout.ConversionPattern=[%30.30t] %-30.30c{1} %-5p %m%n
 #log4j.appender.out.layout.ConversionPattern=%d [%-15.15t] %-5p %-30.30c{1} - %m%n
 
+# File appender
+log4j.appender.file=org.apache.log4j.FileAppender
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d %-5p %c{1} - %m %n
+log4j.appender.file.file=target/camel-schematron-test.log
+