com.google.enterprise.adaptor
Class CustomFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by com.google.enterprise.adaptor.CustomFormatter

public class CustomFormatter
extends Formatter

Custom log formatter for ease of development. It is specifically targeted to use in console output and is able to produce color output on Unix terminals.


Constructor Summary
CustomFormatter()
           
 
Method Summary
 String format(LogRecord record)
           
 boolean isUseColor()
           
 void setUseColor(boolean useColor)
           
 
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomFormatter

public CustomFormatter()
Method Detail

format

public String format(LogRecord record)
Specified by:
format in class Formatter

isUseColor

public boolean isUseColor()

setUseColor

public void setUseColor(boolean useColor)