org.apache.solr
Class SolrLogFormatter
java.lang.Object
java.util.logging.Formatter
org.apache.solr.SolrLogFormatter
public class SolrLogFormatter
- extends Formatter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shorterFormat
public boolean shorterFormat
classAliases
public Map<String,String> classAliases
SolrLogFormatter
public SolrLogFormatter()
setShorterFormat
public void setShorterFormat()
- Removes info that is redundant for current cloud tests including core name, webapp, and common labels path= and params=
[] webapp=/solr path=/select params={q=foobarbaz} hits=0 status=0 QTime=1
/select {q=foobarbaz} hits=0 status=0 QTime=1
NOTE: this is a work in progress and different settings may be ideal for other types of tests.
format
public String format(LogRecord record)
- Specified by:
format
in class Formatter
appendThread
public void appendThread(StringBuilder sb,
LogRecord record)
_format
public String _format(LogRecord record)
getHead
public String getHead(Handler h)
- Overrides:
getHead
in class Formatter
getTail
public String getTail(Handler h)
- Overrides:
getTail
in class Formatter
formatMessage
public String formatMessage(LogRecord record)
- Overrides:
formatMessage
in class Formatter
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
go
public static void go()
throws Exception
- Throws:
Exception
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.