lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fran├žois Schiettecatte <fschietteca...@gmail.com>
Subject Re: Spellcheck compounded words
Date Tue, 26 Jul 2011 18:54:04 GMT
FWIW, here is the process I follow to create a log4j aware version of the apache solr war file
and the corresponding lo4j.properties files.

Have fun :)

Fran├žois


##########################################################
#
# Log4J configuration for SOLR
#
#	http://wiki.apache.org/solr/SolrLogging
#
#
# 1) Download SLF4J:
#		http://www.slf4j.org/
#		http://www.slf4j.org/download.html
# 		http://www.slf4j.org/dist/slf4j-1.6.1.tar.gz
#
# 2) Unpack Solr:
#		jar xvf apache-solr-3.3.0.war
#
# 3) Delete:
#		WEB-INF/lib/log4j-over-slf4j-1.6.1.jar
#		WEB-INF/lib/slf4j-jdk14-1.6.1.jar
#
# 4) Copy:
#		slf4j-1.6.1/slf4j-log4j12-1.6.1.jar	-> 		WEB-INF/lib
#		log4j.properties (this file)		-> 		WEB-INF/classes/ (needs to be created)
#
# 5) Pack Solr:
#		jar cvf apache-solr-3.3.0.war admin favicon.ico index.jsp META-INF WEB-INF
#
#
#	Author:		Francois Schiettecatte
#	Version:	1.0
#
##########################################################



##########################################################
#
# Logging levels (helpful reminder)
#
# DEBUG < INFO < WARN < ERROR < FATAL
#



##########################################################
#
# Logging setup
#

log4j.rootLogger=ERROR, SOLR


# Daily Rolling File Appender (SOLR)
log4j.appender.SOLR=org.apache.log4j.DailyRollingFileAppender
log4j.appender.SOLR.File=${catalina.base}/logs/solr.log
log4j.appender.SOLR.Append=true
log4j.appender.SOLR.Encoding=UTF-8
log4j.appender.SOLR.DatePattern='-'yyyy-MM-dd
log4j.appender.SOLR.layout=org.apache.log4j.PatternLayout
log4j.appender.SOLR.layout.ConversionPattern=%d [%t] %-5p %c - %m%n



##########################################################
#
# Logging levels for SOLR
#

# Default logging level
log4j.logger.org.apache.solr=ERROR



##########################################################




On Jul 26, 2011, at 2:49 PM, O. Klein wrote:

> Adding log4j-1.2.16.jar and deleting slf4j-jdk14-1.6.1.jar does not fix
> logging for 4.0 for me.
> 
> Anyways, tried it on 3.3 and Solr just hangs here also. No logging, no
> exceptions.
> 
> I'll let you know if I manage to find source of problem.
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Spellcheck-compounded-words-tp3192748p3201202.html
> Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message