From c749a9c9aa70c33cbd1f19c53488fbe89c0f6c60 Mon Sep 17 00:00:00 2001 From: j2blake Date: Wed, 13 Jul 2011 17:18:49 +0000 Subject: [PATCH] NIHVIVO-2757 Set solr logging properties so it logs to a file --- webapp/build.xml | 5 ++++- webapp/config/solr/logging.properties | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 webapp/config/solr/logging.properties diff --git a/webapp/build.xml b/webapp/build.xml index 66f76b1c8..d670a0670 100644 --- a/webapp/build.xml +++ b/webapp/build.xml @@ -322,6 +322,9 @@ deploy - Deploy the application directly into the Tomcat webapps directory. + + + @@ -336,7 +339,7 @@ deploy - Deploy the application directly into the Tomcat webapps directory. target: deploySolr - - - - - - - - - - - - - - - - - --> - + diff --git a/webapp/config/solr/logging.properties b/webapp/config/solr/logging.properties new file mode 100644 index 000000000..a647fe069 --- /dev/null +++ b/webapp/config/solr/logging.properties @@ -0,0 +1,14 @@ +# logging parameters for Solr +# see http://tomcat.apache.org/tomcat-6.0-doc/logging.html#Using_java.util.logging_%28default%29 + +handlers = org.apache.juli.FileHandler + +############################################################ +# Handler specific properties. +# Describes specific configuration info for Handlers. +############################################################ + +org.apache.juli.FileHandler.level = INFO +org.apache.juli.FileHandler.directory = ${catalina.base}/logs +org.apache.juli.FileHandler.prefix = solr. +org.apache.juli.FileHandler.formatter = java.util.logging.SimpleFormatter