You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2014/04/20 00:23:46 UTC

[Solr Wiki] Update of "SolrLogging" by ShawnHeisey

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SolrLogging" page has been changed by ShawnHeisey:
https://wiki.apache.org/solr/SolrLogging?action=diff&rev1=37&rev2=38

Comment:
beef up the section on customizing the logging in the example.

  May 29, 2013 3:59:40 PM org.apache.catalina.core.StandardContext start
  SEVERE: Error filterStart
  May 29, 2013 3:59:40 PM org.apache.catalina.core.StandardContext start
- SEVERE: Context [/solr] startup failed due to previous errors 
+ SEVERE: Context [/solr] startup failed due to previous errors
  }}}
  
  If the system cannot find your logging configuration, you may get errors like this:
@@ -86, +86 @@

  
  = Customizing Logging =
  == With Example Jetty Instance ==
- If you don't know much about JDK containers or servlet containers and want a quick recipe for modifying the logging settings for default Solr example/ setup, see LoggingInDefaultJettySetup.
+ If you're using the example from Solr 4.3.0 and later, you can simply edit the log4j.properties file in the resources directory to customize the logging.  There is a lot of information on the Internet regarding how to configure log4j, including the [[http://logging.apache.org/log4j/1.2/manual.html|introduction]].  The included config file logs to a file as well as the console.
+ 
+ Earlier versions do not come with a logging config file.  See LoggingInDefaultJettySetup for an example of how you can configure logging with 4.2.1 and earlier.
  
  == Using log4j with Solr from source, 4.2.1 or earlier ==
  Prior to [[Solr4.3]], using a different SLF4J binding (such as log4j) meant either repackaging the war file or building it yourself from source.   To build it yourself, you need to obtain a [[NightlyBuilds|nightly version]] or [[HowToContribute#Getting_the_source_code|get it from svn]].  Once it's downloaded, extract it, cd to the solr directory in the extracted directory, then compile it using {{{ant dist-war-excl-slf4j}}} or {{{and dist-excl-slf4j}}} depending on the version.