There are two properties that come into play, because of two different
logging systems
java.util.logging is used in some of the Solr code that SolrMarc uses.
It is controlled by the property:
solr.log.level
it defaults to the level "WARNING" meaning only WARNINGs or SEVEREs
will be output.
log4j logging is used by much of the rest of SolrMarc. It is
controlled by the property:
solrmarc.log.level
it defaults to the level "INFO" you should be able to set it to "WARN"
or "FATAL" or "OFF" to reduce the
amount of info that is written out during processing.
-Bob Haschart
the relevant code snippet from SolrMarc is below:
String solrLogLevel = Utils.getProperty(configProps,
"solr.log.level");
java.util.logging.Level solrLevel =
java.util.logging.Level.WARNING;
if (solrLogLevel != null)
{
if (solrLogLevel.equals("OFF")) solrLevel =
java.util.logging.Level.OFF;
if (solrLogLevel.equals("SEVERE")) solrLevel =
java.util.logging.Level.SEVERE;
if (solrLogLevel.equals("WARNING")) solrLevel =
java.util.logging.Level.WARNING;
if (solrLogLevel.equals("INFO")) solrLevel =
java.util.logging.Level.INFO;
if (solrLogLevel.equals("FINE")) solrLevel =
java.util.logging.Level.FINE;
if (solrLogLevel.equals("FINER")) solrLevel =
java.util.logging.Level.FINER;
if (solrLogLevel.equals("FINEST")) solrLevel =
java.util.logging.Level.FINEST;
if (solrLogLevel.equals("ALL")) solrLevel =
java.util.logging.Level.ALL;
}
java.util.logging.Logger.getLogger("org.apache.solr").setLevel(solrLevel);
String solrmarcLogLevel = Utils.getProperty(configProps,
"solrmarc.log.level");
Level solrmarcLevel = Level.INFO;
if (solrmarcLogLevel != null)
{
if (solrmarcLogLevel.equals("OFF")) solrmarcLevel =
Level.OFF;
if (solrmarcLogLevel.equals("FATAL")) solrmarcLevel =
Level.FATAL;
if (solrmarcLogLevel.equals("WARN")) solrmarcLevel =
Level.WARN;
if (solrmarcLogLevel.equals("INFO")) solrmarcLevel =
Level.INFO;
if (solrmarcLogLevel.equals("DEBUG")) solrmarcLevel =
Level.DEBUG;
if (solrmarcLogLevel.equals("ALL")) solrmarcLevel =
Level.ALL;
logger.setLevel(solrmarcLevel);
> --
> You received this message because you are subscribed to the Google
> Groups "solrmarc-general" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
solrmarc-gener...@googlegroups.com.
> To post to this group, send email to
solrmarc...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/solrmarc-general?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>