Browse files

Allow logback to be configured from solr home logback.xml, set solr o…

…utput to WARN
  • Loading branch information...
1 parent 7ca2e7b commit 05c78b09955e7ad37ab6af11b11105bce2612b3c mguymon committed Sep 17, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/main/java/com/tobedevoured/solrsail/JettyServer.java
View
6 src/main/java/com/tobedevoured/solrsail/JettyServer.java
@@ -29,6 +29,7 @@
import org.slf4j.LoggerFactory;
+import com.tobedevoured.command.LogUtil;
import com.tobedevoured.command.Runner;
import com.tobedevoured.command.annotation.ByYourCommand;
import com.tobedevoured.command.annotation.Command;
@@ -90,6 +91,11 @@ public void start(boolean join) throws Exception {
System.setProperty("org.apache.jasper.compiler.disablejsr199", "true" );
+ File logbackConfig = new File( getSolrHome() + File.separator + "logback.xml" );
+ if ( logbackConfig.exists() ) {
+ LogUtil.configureFromFile( logbackConfig );
+ }
+
server = new Server(getPort());
String webDir = JettyServer.class.getClassLoader().getResource("webapp").toExternalForm();

0 comments on commit 05c78b0

Please sign in to comment.