I can't verify that these have the desired effect, as I think setting the defaultlog only sets to what facility unspecified log states go. Also, I think you want to put these in commons-logging.properties with your application instead of in System Properties.

--
Ryan Hoegg
ISIS Networks
http://www.isisnetworks.net

Tarek M. Nabil wrote:

Supposedly, the following statements will guarantee that the logging is only restricted to the System.out and that it will be on the error level. Please correct me if anything is wrong.

System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog");

System.setProperty("org.apache.commons.logging.simplelog.showdatetime", "true");

System.setProperty("org.apache.commons.logging.simplelog.defaultlog", "error");

Thanks again for your help.

Tarek Nabil


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

Reply via email to