Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 32793 invoked from network); 22 Oct 2008 00:47:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Oct 2008 00:47:16 -0000 Received: (qmail 14986 invoked by uid 500); 22 Oct 2008 00:47:11 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 14897 invoked by uid 500); 22 Oct 2008 00:47:11 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 14697 invoked by uid 99); 22 Oct 2008 00:47:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Oct 2008 17:47:10 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Oct 2008 00:46:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3BBC9234C22A for ; Tue, 21 Oct 2008 17:46:47 -0700 (PDT) Message-ID: <609910008.1224636407243.JavaMail.jira@brutus> Date: Tue, 21 Oct 2008 17:46:47 -0700 (PDT) From: "Robert Chansler (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-3368) Can commons-logging.properties be pulled from hadoop-core? In-Reply-To: <802865847.1210263556923.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Chansler updated HADOOP-3368: ------------------------------------ Component/s: build > Can commons-logging.properties be pulled from hadoop-core? > ---------------------------------------------------------- > > Key: HADOOP-3368 > URL: https://issues.apache.org/jira/browse/HADOOP-3368 > Project: Hadoop Core > Issue Type: Improvement > Components: build > Affects Versions: 0.19.0 > Reporter: Steve Loughran > Assignee: Steve Loughran > Fix For: 0.19.0 > > Attachments: hadoop-3368.patch > > > In the root of hadoop-core.jar is a log4j.properties and a commons-logging.properties > while this provides good standalone functionality to hadoop, it complicates anyone else trying to control the logging, and use the libraries in-process. > In particular, there is a commons-logging.properties file that selects Log4J as the back end. This is not needed as > -log4j is automatically picked up if it is on the classpath > -if it is not on the classpath, asking for it is generally considered bad form > If you look at the commons-logging configuration details: > http://commons.apache.org/logging/guide.html#Configuration > you will see that that such a properties file takes priority over any setting through system properties, which makes it very hard to override the settings without adding multiple commons-logging.properties files and playing with their priority settings > If you pull the commons-logging.properties file from hadoop-core log4j will still be picked up by default, but it becomes easier for people to turn on different logging infrastructures if they want to. It should have no visible impact on the end user experience (unlike pulling log4j.properties) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.