lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joyce chan <joyce.sz.c...@gmail.com>
Subject Re: place of log4j.properties file
Date Wed, 01 Sep 2010 15:48:25 GMT
Hi

Sorry to reopen this thread.  Do you guys know how to use log4jdbc in solr?

Thanks
JC

2010/3/19 Király Péter <pkiraly@tesuji.eu>

> Thanks David!
>
> It works. Even with relative path, like
> -Dlog4j.configuration=file:etc/log4j.properties.
>
> Péter
>
> ----- Original Message ----- From: "Smiley, David W." <dsmiley@mitre.org>
> To: <solr-user@lucene.apache.org>
> Cc: "Eric Pugh" <epugh@opensourceconnections.com>
> Sent: Friday, March 19, 2010 5:43 PM
> Subject: Re: place of log4j.properties file
>
>
>
> I believe that should have been
> -Dlog4j.configuration=file:/c:/foo/log4j.properties
> I've done this sort of thing many times before.
>
> I've also found it helpful to add -Dlog4j.debug  (no value needed) to debug
> logging.
>
> http://logging.apache.org/log4j/1.2/manual.html
>
> ~ David Smiley
> Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/
>
> On Mar 19, 2010, at 12:27 PM, Király Péter wrote:
>
>  Hi,
>>
>> on page 205 of the Solr 1.4 Enterprise Search Server book there is an
>> example,
>> of how to reference log4j.properties file from Jetty. I tried that and
>> several other
>> methods (like -Dlog4j.properties=<path to file>), but the only working way
>> was to put create a WEB-INF/classes directory inside the solr.war, and put
>> the file there (tip I found in the list's archive).
>>
>> Is it possible, that there is no other way?
>>
>> Thanks,
>> Péter
>>
>>
>
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message