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 2017/04/24 17:00:02 UTC
[8/8] camel git commit: Add camel-undertow-starter log configuration
to redirect test logs fo file
Add camel-undertow-starter log configuration to redirect test logs fo file
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/09f6ada3
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/09f6ada3
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/09f6ada3
Branch: refs/heads/master
Commit: 09f6ada3b82a8614bcf43f179b95872b81b37ce0
Parents: f08a300
Author: lburgazzoli <lb...@gmail.com>
Authored: Mon Apr 24 18:59:13 2017 +0200
Committer: lburgazzoli <lb...@gmail.com>
Committed: Mon Apr 24 18:59:13 2017 +0200
----------------------------------------------------------------------
.../src/test/resources/logback.xml | 39 ++++++++++++++++++++
1 file changed, 39 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/09f6ada3/platforms/spring-boot/components-starter/camel-undertow-starter/src/test/resources/logback.xml
----------------------------------------------------------------------
diff --git a/platforms/spring-boot/components-starter/camel-undertow-starter/src/test/resources/logback.xml b/platforms/spring-boot/components-starter/camel-undertow-starter/src/test/resources/logback.xml
new file mode 100644
index 0000000..81595a2
--- /dev/null
+++ b/platforms/spring-boot/components-starter/camel-undertow-starter/src/test/resources/logback.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ 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.
+ -->
+<configuration>
+
+ <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+ <!-- encoders are assigned the type
+ ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
+ <encoder>
+ <pattern>%d{HH:mm:ss.SSS} [%-15.15thread] %-5level %-30.30logger - %msg%n</pattern>
+ </encoder>
+ </appender>
+
+ <appender name="FILE" class="ch.qos.logback.core.FileAppender">
+ <encoder>
+ <pattern>%d{HH:mm:ss.SSS} [%-15.15thread] %-5level %-30.30logger - %msg%n</pattern>
+ </encoder>
+ <file>target/camel-undertow-starter-test.log</file>
+ </appender>
+
+ <root level="INFO">
+ <appender-ref ref="FILE"/>
+ </root>
+
+</configuration>