Man I hate this logging problem we are starting to see with Java, where everybody and his dog has a proprietary logging system.
Commons logging
Log4j
java.util.Logger
All have pretty much the exact same functionality.
Since it's now available, why doesn't everyone just use java.util.Logger now? When last did anyone need to support Java 1.3 for a beta delivery of Xindice?


In addition, since xindice is now deployed as a war file embedded in Tomcat, and by default has enough logging enabled to make a sailor blush, or at least to severaly impact performance, it seems a better solution to logging is required.
There is no way to specify env variables to a war deployment, unless you write your own deployment descriptor and do a custom servlet deployment, which is a real pain in the ...


Hint to Xindice gods: Tune logging to be a bit quieter in the deliveries, and if people require, they can manually set it a bit higher.


WH

Upayavira wrote:

Willis, Paul A. wrote:

Vadim wrote:


Xindice uses Jakarta Commons logging [1]. Read also user guide [2]. See also LOGGER and LOGLEVEL environment variables used by the xindice scripts.


OK, I reviewed the jakarta web pages and reviewed LOGGER and LOGLEVEL
variables used by xindice scripts. The problem I'm facing is that I'm using
xindice in EMBEDDED mode. I can quite figure out how to configure the
debug/logging output with embedded xindice.


(Vadim, thanks for the assistance!)


From my uneducated explorations, I looked in code for org.apache.commons.logging.impl.SimpleLog, see http://cvs.apache.org/viewcvs.cgi/jakarta-commons/logging/src/java/org/apache/commons/logging/impl/SimpleLog.java?rev=1.14&view=markup


There are references to system properties in there. Therefore Jakarta commons logging gets its configuration from system properties. So, either start up Java with -dXXXXXX=XXX properties, or before you call XIndice, make sure you do System.setProperty("xxx", "xxx") (I assume that is possible).


To get the exact values, plagiarise them out of bin/xindice.bat.

HTH.

Upayavira

Paul Willis
NGIT

-----Original Message-----
From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 22, 2004 6:01 AM
To: xindice-users@xml.apache.org
Subject: Re: question about debug output


Willis, Paul A. wrote:



Hello,

How does one turn off the debug output?




Xindice uses Jakarta Commons logging [1]. Read also user guide [2]. See also LOGGER and LOGLEVEL environment variables used by the xindice scripts.

Vadim


[1] http://jakarta.apache.org/commons/logging.html [2] http://jakarta.apache.org/commons/logging/userguide.html










Reply via email to