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 2018/11/14 10:52:19 UTC

[camel-k] 08/08: chore(runtime): replace test logging configuration via properties with xml configuiration for camel-knative submodule

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-k.git

commit 612142d9a44aecf140f911d47da7d36e50e3848d
Author: lburgazzoli <lb...@gmail.com>
AuthorDate: Wed Nov 14 11:29:34 2018 +0100

    chore(runtime): replace test logging configuration via properties with xml configuiration for camel-knative submodule
---
 .../camel-knative/src/test/resources/log4j2-test.xml    | 17 +++++++++++++++++
 .../camel-knative/src/test/resources/log4j2.properties  |  7 -------
 2 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/runtime/camel-knative/src/test/resources/log4j2-test.xml b/runtime/camel-knative/src/test/resources/log4j2-test.xml
new file mode 100644
index 0000000..9af8521
--- /dev/null
+++ b/runtime/camel-knative/src/test/resources/log4j2-test.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Configuration status="INFO">
+  <Appenders>
+    <Console name="STDOUT" target="SYSTEM_OUT">
+      <PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS}|%-5level|%t|%c{1} - %msg%n"/>
+    </Console>
+    <Null name="NONE"/>
+  </Appenders>
+
+  <Loggers>
+    <Root level="INFO">
+      <!--<AppenderRef ref="STDOUT"/>-->
+      <AppenderRef ref="NONE"/>
+    </Root>
+  </Loggers>
+
+</Configuration>
\ No newline at end of file
diff --git a/runtime/camel-knative/src/test/resources/log4j2.properties b/runtime/camel-knative/src/test/resources/log4j2.properties
deleted file mode 100644
index 9d5f10e..0000000
--- a/runtime/camel-knative/src/test/resources/log4j2.properties
+++ /dev/null
@@ -1,7 +0,0 @@
-appender.console.type = Console
-appender.console.name = console
-appender.console.layout.type = PatternLayout
-appender.console.layout.pattern = [%-5level] %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %c{1} - %msg%n
-
-rootLogger.level = INFO
-rootLogger.appenderRef.stdout.ref = console
\ No newline at end of file