STORM-850 Convert storm-core's logback-test.xml to log4j2-test.xml

Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/4ca39f15
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/4ca39f15
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/4ca39f15

Branch: refs/heads/0.10.x-branch
Commit: 4ca39f15eea4ca8c3853f82cf00574babd47c963
Parents: bf2ef23
Author: Jungtaek Lim <[email protected]>
Authored: Fri Jun 5 13:08:11 2015 +0900
Committer: Jungtaek Lim <[email protected]>
Committed: Fri Jun 5 13:08:11 2015 +0900

----------------------------------------------------------------------
 storm-core/test/resources/log4j2-test.xml  | 32 +++++++++++++++++++++++++
 storm-core/test/resources/logback-test.xml | 26 --------------------
 2 files changed, 32 insertions(+), 26 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/4ca39f15/storm-core/test/resources/log4j2-test.xml
----------------------------------------------------------------------
diff --git a/storm-core/test/resources/log4j2-test.xml 
b/storm-core/test/resources/log4j2-test.xml
new file mode 100644
index 0000000..4b12147
--- /dev/null
+++ b/storm-core/test/resources/log4j2-test.xml
@@ -0,0 +1,32 @@
+<?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 monitorInterval="60">
+    <Appenders>
+        <Console name="Console" target="SYSTEM_OUT">
+            <PatternLayout pattern="%-4r [%t] %-5p %c{1.} - %msg%n"/>
+        </Console>
+    </Appenders>
+    <Loggers>
+        <Logger name="org.apache.zookeeper" level="WARN"/>
+        <Root level="${env:LOG_LEVEL:-INFO}">
+            <AppenderRef ref="Console"/>
+        </Root>
+    </Loggers>
+</configuration>
+

http://git-wip-us.apache.org/repos/asf/storm/blob/4ca39f15/storm-core/test/resources/logback-test.xml
----------------------------------------------------------------------
diff --git a/storm-core/test/resources/logback-test.xml 
b/storm-core/test/resources/logback-test.xml
deleted file mode 100644
index 346b8ca..0000000
--- a/storm-core/test/resources/logback-test.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.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.
--->
-<configuration scan="true" scanPeriod="30 seconds">
-    <appender name="A1" class="ch.qos.logback.core.ConsoleAppender">
-        <encoder>
-            <pattern>%-4r [%t] %-5p %c - %m%n</pattern>
-        </encoder>
-    </appender>
-    <logger name="org.apache.zookeeper" level="WARN"/>
-    <root level="${LOG_LEVEL:-INFO}">
-        <appender-ref ref="A1"/>
-    </root>
-</configuration>
\ No newline at end of file

Reply via email to