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