[xwiki-users] Lucene and log4j
Hi! Please, what how could I set XWiki to log Lucene messages at debug level? Thanks! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
Ricardo, do you have a log4.properties already existing? I have mine (probably extracted from some xwiki-core-xx.jar, in WEB-INF/classes so I can modify it (it needs to be in the root package). Then I added: log4j.logger.com.xpn.xwiki.plugin.lucene=debug This was for xwiki-1.5 but I think the class is very similar still now. paul Le 12 déc. 2010 à 12:18, Ricardo Rodriguez [eBioTIC.] a écrit :
Please, what how could I set XWiki to log Lucene messages at debug level? Thanks!
Hi! Paul Libbrecht wrote:
Ricardo,
do you have a log4.properties already existing? I have mine (probably extracted from some xwiki-core-xx.jar, in WEB-INF/classes so I can modify it (it needs to be in the root package).
Then I added:
log4j.logger.com.xpn.xwiki.plugin.lucene=debug
This was for xwiki-1.5 but I think the class is very similar still now.
Up and running! Thanks! Just curiosity, please, why must we extract log4j.properties in WEB-INF/classes? Is this the way the version included in xwiki-core-xx.jar gets overwritten? Just to avoid that if you eventually extracts it again can accidentally overwrite a customized copy located in WEB-INF/lib? I think I don't understand your sentence "(it needs to be in the root package)". Thanks! Ricardo
paul
Le 12 déc. 2010 à 12:18, Ricardo Rodriguez [eBioTIC.] a écrit :
Please, what how could I set XWiki to log Lucene messages at debug level? Thanks!
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
Le 13 déc. 2010 à 00:21, Ricardo Rodriguez [eBioTIC.] a écrit :
Just curiosity, please, why must we extract log4j.properties in WEB-INF/classes? Is this the way the version included in xwiki-core-xx.jar gets overwritten?
yes
Just to avoid that if you eventually extracts it again can accidentally overwrite a customized copy located in WEB-INF/lib?
you generally don't change these jars.
I think I don't understand your sentence "(it needs to be in the root package)".
in WEB-INF/classes simply. Not in WEB-INF/classes/com/xpn/xwiki/.... paul
participants (2)
-
Paul Libbrecht -
Ricardo Rodriguez [eBioTIC.]