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


--
Dennis Lundberg

Alex wrote:
Thanks Dennis for your response.
Do you have any other ideas how to disable it because I created
commons-logging.properties file with
org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
Added it in my classpath and my program still sends logging info to the
console.

Thanks
Alex

-----Original Message-----
From: Dennis Lundberg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 16, 2006 2:04 AM
To: Jakarta Commons Users List
Subject: Re: common-logging disabling logging

Hello

In order to disable logging completely you can put a file called commons-logging.properties in your class path with the following contents:

org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to