I have added lines to my logging.properties for Tomcat:
6solr.org.apache.juli.FileHandler.level = FINE
6solr.org.apache.juli.FileHandler.directory = ${catalina.base}/logs
6solr.org.apache.juli.FileHandler.prefix = solr.

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/solr].level
= INFO
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/solr].handlers
= 6solr.org.apache.juli.FileHandler

and added "6solr.org.apache.juli.FileHandler" to the handlers line.
Is there something that I'm missing?  The logs still go to the
catalina.out file.

-- Chris



On Mon, Sep 20, 2010 at 4:54 PM, Christopher Gross <cogr...@gmail.com> wrote:
> Thanks Jak!  That was just what I was looking for!
>
> -- Chris
>
>
>
> On Mon, Sep 20, 2010 at 4:25 PM, Jak Akdemir <jakde...@gmail.com> wrote:
>> It is quite easy to modify its default value. Solr is using default
>> logging values that started to use in jvm. It can be bound as a start
>> parameter or can be externally defined in
>> ../tomcat/conf/logging.properties.
>>
>> Simply it is enough to remove all contents (backup first) in
>> ../tomcat/conf/logging.properties and write .level = SEVERE
>>
>> This change will make root checkbox from unset to severe. Of course
>> you can switch it to WARNING or INFO too.
>>
>> You can observe changes from http://localhost:8080/solr/admin/logging
>> or simply ~/admin/logging  pages.
>>
>> Details are here:
>>
>> http://wiki.apache.org/tomcat/Logging_Tutorial
>>
>> http://tomcat.apache.org/tomcat-6.0-doc/logging.html
>>
>> Jak
>>
>> On Mon, Sep 20, 2010 at 10:32 PM, Christopher Gross <cogr...@gmail.com> 
>> wrote:
>>>
>>> I'm running an old version of Solr (1.2) on Apache Tomcat 5.5.25.
>>> Right now the logs all go to the catalina.out file, which has been
>>> growing rather large.  I have to shut down the servers periodically to
>>> clear out that logfile because it keeps getting large and giving disk
>>> space warnings.
>>>
>>> I've tried looking around for instructions on configuring the logging
>>> for Solr, but I'm not having much luck.  Can someone please point me
>>> in the right direction to set up the logging for Solr?  If I can get
>>> it into rolling logfiles, I can just have a cron job take out the old
>>> ones and not have to restart to do cleanup.
>>>
>>> Please don't tell me to upgrade the software -- it is not an option at
>>> this point.  I'm sure that the latest versions have it working better,
>>> but right now I am unable to upgrade Solr or Tomcat to new versions.
>>>
>>> Thanks!
>>>
>>> -- Chris
>>
>

Reply via email to