org.apache.solr
Class SolrLogFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by org.apache.solr.SolrLogFormatter

public class SolrLogFormatter
extends Formatter


Nested Class Summary
static class SolrLogFormatter.CoreInfo
           
static class SolrLogFormatter.Method
           
static interface SolrLogFormatter.TG
          Add this interface to a thread group and the string returned by getTag() will appear in log statements of any threads under that group.
 
Field Summary
 Map<String,String> classAliases
           
 boolean shorterFormat
           
 
Constructor Summary
SolrLogFormatter()
           
 
Method Summary
 String _format(LogRecord record)
           
 void appendThread(StringBuilder sb, LogRecord record)
           
 String format(LogRecord record)
           
 String formatMessage(LogRecord record)
           
 String getHead(Handler h)
           
 String getTail(Handler h)
           
static void go()
           
static void main(String[] args)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shorterFormat

public boolean shorterFormat

classAliases

public Map<String,String> classAliases
Constructor Detail

SolrLogFormatter

public SolrLogFormatter()
Method Detail

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.