On 4/27/05, qMax <[EMAIL PROTECTED]> wrote:
> what about log4j.properties i dunno.

I put log4j.properties in the tools/bin directory with
"tools\bin\Index-Publication.BAT":
SET CLASSPATH=.
SET ANT_HOME=C:\apache-lenya-1.2.2\tools
ant ...

I changed CLASSPATH to clear the Tomcat CLASSPATH, but there is no
reason not to change it since everything the indexer needs is handled
by ant.BAT.  log4j.properties is loaded from the CLASSPATH, which is
now (just) the tools/bin directory.  JAVA_HOME must also be set, but
Lenya would not run if you had a problem there.

"log4j.properties":
log4j.rootLogger=INFO, lucene
log4j.appender.lucene = org.apache.log4j.FileAppender
log4j.appender.lucene.File = lucene.log
log4j.appender.lucene.Append = false
log4j.appender.lucene.layout = org.apache.log4j.PatternLayout
log4j.appender.lucene.layout.ConversionPattern = %d{ABSOLUTE} [%t]
%-5p %-30.30c{2} %x - %m %n

A log file named "lucene.log" is created (or replaced) in the
tools/bin directory (probably because that is where the batch file is
called.

solprovider

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

Reply via email to