This is an automated email from the ASF dual-hosted git repository.
pmaheshwari pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/samza.git
The following commit(s) were added to refs/heads/master by this push:
new f260be6 SAMZA-2155: Remove log4j log4j2 dependency from samza-test
f260be6 is described below
commit f260be6be5bb184073a2187edc5898b6cba7dea1
Author: Sanil15 <[email protected]>
AuthorDate: Tue Apr 9 11:24:16 2019 -0700
SAMZA-2155: Remove log4j log4j2 dependency from samza-test
Author: Sanil15 <[email protected]>
Reviewers: Ray Matharu <[email protected]>
Closes #985 from Sanil15/SAMZA-2155
---
build.gradle | 5 ++--
samza-test/src/main/resources/log4j.xml | 50 --------------------------------
samza-test/src/main/resources/log4j2.xml | 41 --------------------------
3 files changed, 3 insertions(+), 93 deletions(-)
diff --git a/build.gradle b/build.gradle
index f5d9f51..cde6ead 100644
--- a/build.gradle
+++ b/build.gradle
@@ -810,6 +810,9 @@ project(":samza-test_$scalaSuffix") {
compile.exclude group: 'javax.jms', module: 'jms'
compile.exclude group: 'com.sun.jdmk', module: 'jmxtools'
compile.exclude group: 'com.sun.jmx', module: 'jmxri'
+ // Exclude Slf4j bindings for log4j1 and log4j2 since samza-test just logs
to console using slf4j-simple
+ compile.exclude group: 'org.slf4j', module: 'slf4j-log4j12'
+ compile.exclude group: 'org.apache.logging.log4j', module:
'log4j-slf4j-impl'
}
dependencies {
@@ -819,8 +822,6 @@ project(":samza-test_$scalaSuffix") {
compile project(":samza-core_$scalaSuffix")
compile project(":samza-kafka_$scalaSuffix")
compile project(":samza-sql_$scalaSuffix")
- runtime project(":samza-log4j_$scalaSuffix")
- runtime project(":samza-log4j2_$scalaSuffix")
runtime project(":samza-yarn_$scalaSuffix")
runtime project(":samza-hdfs_$scalaSuffix")
compile "org.scala-lang:scala-library:$scalaVersion"
diff --git a/samza-test/src/main/resources/log4j.xml
b/samza-test/src/main/resources/log4j.xml
deleted file mode 100644
index ab74ebd..0000000
--- a/samza-test/src/main/resources/log4j.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?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. -->
-<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
-
-<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
- <appender name="console" class="org.apache.log4j.ConsoleAppender">
- <param name="Target" value="System.out" />
- <layout class="org.apache.log4j.PatternLayout">
- <param name="ConversionPattern" value="[%t] %c{1} [%p] %m%n" />
- </layout>
- </appender>
-
- <root>
- <priority value="info" />
- <appender-ref ref="console" />
- </root>
-
- <logger name="STARTUP_LOGGER" additivity="false">
- <level value="info" />
- <appender-ref ref="console"/>
- </logger>
-
- <logger name="org.apache.hadoop">
- <level value="ERROR"/>
- </logger>
- <logger name="org.I0Itec.zkclient">
- <level value="ERROR"/>
- </logger>
- <logger name="org.apache.zookeeper">
- <level value="ERROR"/>
- </logger>
- <logger name="org.apache.samza.system.kafka">
- <level value="ERROR"/>
- </logger>
- <logger name="org.apache.kafka">
- <level value="ERROR"/>
- </logger>
- <logger name="kafka">
- <level value="ERROR"/>
- </logger>
-</log4j:configuration>
\ No newline at end of file
diff --git a/samza-test/src/main/resources/log4j2.xml
b/samza-test/src/main/resources/log4j2.xml
deleted file mode 100644
index f00cb7d..0000000
--- a/samza-test/src/main/resources/log4j2.xml
+++ /dev/null
@@ -1,41 +0,0 @@
-<?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>
- <Appenders>
- <Console name="STDOUT" target="SYSTEM_OUT">
- <PatternLayout pattern="[%t] %c{1} [%p] %m%n"/>
- </Console>
- </Appenders>
- <Loggers>
- <Root level="info">
- <AppenderRef ref="STDOUT"/>
- </Root>
-
- <Logger name="STARTUP_LOGGER" level="info" additivity="false">
- <AppenderRef ref="STDOUT"/>
- </Logger>
-
- <Logger name="org.apache.hadoop" level="error"></Logger>
-
- <Logger name="org.I0Itec.zkclient" level="error"></Logger>
-
- <Logger name="org.apache.zookeeper" level="error"></Logger>
-
- <Logger name="org.apache.samza.system.kafka" level="error"></Logger>
-
- <Logger name="org.apache.kafka" level="error"></Logger>
-
- <Logger name="kafka" level="error"></Logger>
-
- </Loggers>
-</Configuration>
\ No newline at end of file