Or you could use system properties to control that.

For example if you are using logbak, then

JAVA_OPTS="$JAVA_OPTS
-Dlogback.configurationFile=$CATALINA_BASE/conf/logback.xml" will do it




On 20 August 2014 03:15, Aman Tandon <amantandon...@gmail.com> wrote:

> As you are using tomcat you can configure the log file name, folder,etc. by
> configuring the server.xml present in the Conf directory of tomcat.
> On Aug 19, 2014 4:17 AM, "Shawn Heisey" <s...@elyograg.org> wrote:
>
> > On 8/18/2014 2:43 PM, M, Arjun (NSN - IN/Bangalore) wrote:
> > >         Currently in my component Solr is logging to catalina.out. What
> > is the configuration needed to redirect those logs to some custom logfile
> > eg: Solr.log.
> >
> > Solr uses the slf4j library for logging.  Simply change your program to
> > use slf4j, and very likely the logs will go to the same place the Solr
> > logs do.
> >
> > http://www.slf4j.org/manual.html
> >
> > See also the wiki page on logging jars and Solr:
> >
> > http://wiki.apache.org/solr/SolrLogging
> >
> > Thanks,
> > Shawn
> >
> >
>



-- 
Thanks & Regards
Umesh Prasad
Search l...@flipkart.com

 in.linkedin.com/pub/umesh-prasad/6/5bb/580/

Reply via email to