we using tomcat 6.0.35 solr 4.0.0. placed jar-files in lib directory in instancedir of our solrcore. in our jar's there classes using intern logback configuration/classes.(a facade logging-framework (currently logback/slf4j). support additional functinality,) can't make work, logging of our jar's working.
we tried:
editing default logging.properties. in case, log belong our logger, contain log statements of our application.
giving solr logback.xml file, logback jars in lib folder. in case havn't got logs in our logfiles.
making tomcat using logback log. in case recieved different logs tomcat , other classes in org.apache.catalina. there no log solr nor our application in log files
what can customize our logging? use logback if it's possible.
at least enough make solr using logback. therefore placed logback-core , loback-classic jar file in solr's war file , gave logback configuration file program parameter , disabled solr's standard logging. don't think best solution worked.
we unpacked solr.war file:
jar xfv solr.war rm solr.warand copied logback-core-.jar , logback-classic-.jar folder web-inf/lib
cp /somepath/logback-core-<version>.jar /somepath/logback-classic-<version>.jar web-inf/libat least build war file again
jar cfv solr.war *
now adjusted programs parameters: we've set following options in instance.env file
export logging_config="-dnop" export java_opts="$java_opts -dlogback.configurationfile=/somepath/logback.xml" then solr logged via logback specified in logback.xml file. received logs our application in solr too.
Comments
Post a Comment