Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A542D200D49 for ; Fri, 24 Nov 2017 20:59:54 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A2C4E160C1A; Fri, 24 Nov 2017 19:59:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A2237160BDA for ; Fri, 24 Nov 2017 20:59:53 +0100 (CET) Received: (qmail 50967 invoked by uid 500); 24 Nov 2017 19:59:52 -0000 Mailing-List: contact commits-help@flume.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flume.apache.org Delivered-To: mailing list commits@flume.apache.org Received: (qmail 50958 invoked by uid 99); 24 Nov 2017 19:59:52 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Nov 2017 19:59:52 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B733AF5FB9; Fri, 24 Nov 2017 19:59:51 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: rgoers@apache.org To: commits@flume.apache.org Date: Fri, 24 Nov 2017 19:59:51 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [01/11] flume git commit: FLUME-2050 Upgrade to Log4j 2 archived-at: Fri, 24 Nov 2017 19:59:54 -0000 Repository: flume Updated Branches: refs/heads/trunk d116f9707 -> fbc7a68e7 http://git-wip-us.apache.org/repos/asf/flume/blob/140ea5d2/flume-ng-sources/flume-scribe-source/pom.xml ---------------------------------------------------------------------- diff --git a/flume-ng-sources/flume-scribe-source/pom.xml b/flume-ng-sources/flume-scribe-source/pom.xml index dc46c62..933f5aa 100644 --- a/flume-ng-sources/flume-scribe-source/pom.xml +++ b/flume-ng-sources/flume-scribe-source/pom.xml @@ -150,8 +150,26 @@ limitations under the License. - org.slf4j - slf4j-log4j12 + org.apache.logging.log4j + log4j-api + test + + + + org.apache.logging.log4j + log4j-core + test + + + + org.apache.logging.log4j + log4j-slf4j-impl + test + + + + org.apache.logging.log4j + log4j-1.2-api test http://git-wip-us.apache.org/repos/asf/flume/blob/140ea5d2/flume-ng-sources/flume-twitter-source/src/test/resources/log4j.properties ---------------------------------------------------------------------- diff --git a/flume-ng-sources/flume-twitter-source/src/test/resources/log4j.properties b/flume-ng-sources/flume-twitter-source/src/test/resources/log4j.properties deleted file mode 100644 index 7755024..0000000 --- a/flume-ng-sources/flume-twitter-source/src/test/resources/log4j.properties +++ /dev/null @@ -1,33 +0,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. -log4j.rootLogger=WARN, A1 - -log4j.logger.org.apache.flume.sink=INFO -#log4j.logger.org.apache.flume.sink.solr=DEBUG -log4j.logger.org.apache.solr=INFO -#log4j.logger.org.apache.solr.hadoop=DEBUG -log4j.logger.org.apache.solr.morphline=DEBUG -log4j.logger.org.apache.solr.update.processor.LogUpdateProcessor=WARN -log4j.logger.org.apache.solr.core.SolrCore=WARN -log4j.logger.org.apache.solr.search.SolrIndexSearcher=ERROR - -# A1 is set to be a ConsoleAppender. -log4j.appender.A1=org.apache.log4j.ConsoleAppender - -# A1 uses PatternLayout. -log4j.appender.A1.layout=org.apache.log4j.PatternLayout -log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n http://git-wip-us.apache.org/repos/asf/flume/blob/140ea5d2/flume-ng-sources/flume-twitter-source/src/test/resources/log4j2.xml ---------------------------------------------------------------------- diff --git a/flume-ng-sources/flume-twitter-source/src/test/resources/log4j2.xml b/flume-ng-sources/flume-twitter-source/src/test/resources/log4j2.xml new file mode 100644 index 0000000..0f3d384 --- /dev/null +++ b/flume-ng-sources/flume-twitter-source/src/test/resources/log4j2.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flume/blob/140ea5d2/flume-ng-tests/pom.xml ---------------------------------------------------------------------- diff --git a/flume-ng-tests/pom.xml b/flume-ng-tests/pom.xml index 2a4b42c..ee3f4f4 100644 --- a/flume-ng-tests/pom.xml +++ b/flume-ng-tests/pom.xml @@ -41,8 +41,18 @@ flume-ng-configuration - log4j - log4j + org.apache.logging.log4j + log4j-api + test + + + org.apache.logging.log4j + log4j-core + test + + + org.apache.logging.log4j + log4j-1.2-api test @@ -59,6 +69,16 @@ org.apache.hadoop ${hadoop.common.artifact.id} true + + + log4j + log4j + + + org.slf4j + slf4j-log4j12 + + com.google.guava http://git-wip-us.apache.org/repos/asf/flume/blob/140ea5d2/flume-ng-tests/src/test/resources/log4j.properties ---------------------------------------------------------------------- diff --git a/flume-ng-tests/src/test/resources/log4j.properties b/flume-ng-tests/src/test/resources/log4j.properties deleted file mode 100644 index 739ecc8..0000000 --- a/flume-ng-tests/src/test/resources/log4j.properties +++ /dev/null @@ -1,25 +0,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. - - -log4j.rootLogger = INFO, out - -log4j.appender.out = org.apache.log4j.ConsoleAppender -log4j.appender.out.layout = org.apache.log4j.PatternLayout -log4j.appender.out.layout.ConversionPattern = %d (%t) [%p - %l] %m%n - -log4j.logger.org.apache.flume = DEBUG http://git-wip-us.apache.org/repos/asf/flume/blob/140ea5d2/flume-ng-tests/src/test/resources/log4j2.xml ---------------------------------------------------------------------- diff --git a/flume-ng-tests/src/test/resources/log4j2.xml b/flume-ng-tests/src/test/resources/log4j2.xml new file mode 100644 index 0000000..a6e2e30 --- /dev/null +++ b/flume-ng-tests/src/test/resources/log4j2.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + \ No newline at end of file http://git-wip-us.apache.org/repos/asf/flume/blob/140ea5d2/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index da84b5b..465c85f 100644 --- a/pom.xml +++ b/pom.xml @@ -81,8 +81,7 @@ limitations under the License. 1.0.0 1.0.0 1.0.0 - 1.1 - 1.2.17 + 2.9.1 0.9.9 2.0.4 1.9.0 @@ -991,36 +990,38 @@ limitations under the License. - log4j - log4j - ${log4j-log4j.version} - - - com.sun.jdmk - jmxtools - - - com.sun.jmx - jmxri - - + org.apache.logging.log4j + log4j-api + ${log4j.version} - log4j - apache-log4j-extras - ${log4j-extras.version} + org.apache.logging.log4j + log4j-core + ${log4j.version} - org.slf4j - slf4j-api - ${slf4j.version} + org.apache.logging.log4j + log4j-slf4j-impl + ${log4j.version} + + + + org.apache.logging.log4j + log4j-1.2-api + ${log4j.version} + + + + org.apache.logging.log4j + log4j-jcl + ${log4j.version} org.slf4j - slf4j-log4j12 + slf4j-api ${slf4j.version}