Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 24724 invoked from network); 17 Mar 2006 21:36:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Mar 2006 21:36:53 -0000 Received: (qmail 33951 invoked by uid 500); 17 Mar 2006 21:36:47 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 33937 invoked by uid 500); 17 Mar 2006 21:36:47 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 33926 invoked by uid 99); 17 Mar 2006 21:36:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2006 13:36:47 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [210.86.15.159] (HELO avmta4-rme.xtra.co.nz) (210.86.15.159) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Mar 2006 13:36:46 -0800 Received: from mta4-rme.xtra.co.nz ([210.86.15.192]) by avmta4-rme.xtra.co.nz with ESMTP id <20060317213623.BUTA170.avmta4-rme.xtra.co.nz@mta4-rme.xtra.co.nz> for ; Sat, 18 Mar 2006 10:36:23 +1300 Received: from [10.1.1.6] ([219.89.109.198]) by mta4-rme.xtra.co.nz with ESMTP id <20060317213623.GSBE1416.mta4-rme.xtra.co.nz@[10.1.1.6]> for ; Sat, 18 Mar 2006 10:36:23 +1300 Subject: Re: common-logging disabling logging From: Simon Kitching Reply-To: skitching@apache.org To: Jakarta Commons Users List In-Reply-To: <441B141B.8080406@apache.org> References: <0IW8006L5VNLVZK9@mta7.srv.hcvlny.cv.net> <441B141B.8080406@apache.org> Content-Type: text/plain Date: Sat, 18 Mar 2006 10:37:20 +1300 Message-Id: <1142631440.3810.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 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 Yep. However using a commons-logging.properties file is generally more convenient. You should check whether there is already a commons-logging.properties file in the classpath (eg inside a jarfile) at a position earlier than the one you created. Note that the file should be at the "top level", eg not nested inside com/acme/... Cheers, Simon On Fri, 2006-03-17 at 20:55 +0100, Dennis Lundberg wrote: > Hi Alex > > Another way to do it is to set a system property when you run your > program. Something like this (but all on one line): > > java -classpath=... > -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog > com.yourcompany.YourClass > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org