Return-Path: Delivered-To: apmail-incubator-jackrabbit-dev-archive@www.apache.org Received: (qmail 23990 invoked from network); 28 Sep 2005 22:21:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Sep 2005 22:21:28 -0000 Received: (qmail 29443 invoked by uid 500); 28 Sep 2005 22:21:27 -0000 Mailing-List: contact jackrabbit-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jackrabbit-dev@incubator.apache.org Delivered-To: mailing list jackrabbit-dev@incubator.apache.org Received: (qmail 29430 invoked by uid 99); 28 Sep 2005 22:21:27 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2005 15:21:26 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id DA319124 for ; Thu, 29 Sep 2005 00:21:04 +0200 (CEST) Message-ID: <1099219159.1127946064891.JavaMail.jira@ajax.apache.org> Date: Thu, 29 Sep 2005 00:21:04 +0200 (CEST) From: "Jukka Zitting (JIRA)" To: jackrabbit-dev@incubator.apache.org Subject: [jira] Updated: (JCR-215) Code is depends on Log4J directly instead of commons-logging In-Reply-To: <1568657552.1126721274380.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/JCR-215?page=all ] Jukka Zitting updated JCR-215: ------------------------------ Attachment: jackrabbit.slf4j.patch The attached patch replaces all log4j references with the equivalent slf4j code. The detailed changes are: * Replace the log4j dependency with nlog4j in project.xml * Replace org.apache.log4j.Logger with org.slf4j.Logger * Replace org.apache.log4j.Logger.getLogger() with org.slf4j.LoggerFactory.getLogger() * Replace org.apache.log4j.Logger.fatal() with org.slf4j.Logger.error() * Adjust some log method arguments as required by the API change (e.g. Object -> String) * Remove the (unused) ability to set log level in org.apache.jackrabbit.test.LogPrintWriter Note that the last change touches the TCK test suite and can break test setups that specifically modify the logging level of test output. Perhaps we should keep using log4j for the test suite? I used the slf4j-compliant nlog4j library as a dependency instead of the smaller slf4j alternatives. The nlog4j library is a slightly modified version of log4j, so this change should be mostly invisible to end users unless they want to switch to using some other logging framework with slf4j support. I didn't commit these changes directly as there might yet be other opinions on this matter. If so, please comment this issue. Unless anyone objects, I'll commit the patch within a few days. > Code is depends on Log4J directly instead of commons-logging > ------------------------------------------------------------ > > Key: JCR-215 > URL: http://issues.apache.org/jira/browse/JCR-215 > Project: Jackrabbit > Type: Improvement > Reporter: Ragy Eleish > Assignee: Jukka Zitting > Priority: Minor > Fix For: 1.0 > Attachments: jackrabbit.slf4j.patch > > The code is written against the Log4J APIs, which forces all users of Jackarabbit to pick up log4J dependency and to juggle with JDK logging and Log4J configuration if other components of the project uses JDK 1.4 logging. > If the code is move to depend on Apache commons-logging this issue will be resolved. Also this should be a minor fix. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira