de.unkrig.commons.util.logging.formatter
Class PrettyPrintFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by de.unkrig.commons.util.logging.formatter.PrettyPrintFormatter

public class PrettyPrintFormatter
extends java.util.logging.Formatter

A Formatter that uses PrettyPrinter to beautify the log record's parameters, and then calls a delegate Formatter.


Constructor Summary
PrettyPrintFormatter()
           
PrettyPrintFormatter(java.util.logging.Formatter delegate)
           
 
Method Summary
 java.lang.String format(java.util.logging.LogRecord record)
           
 
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

PrettyPrintFormatter

public PrettyPrintFormatter()
                     throws ParseException,
                            EvaluationException
Throws:
ParseException
EvaluationException

PrettyPrintFormatter

public PrettyPrintFormatter(java.util.logging.Formatter delegate)
Method Detail

format

public java.lang.String format(java.util.logging.LogRecord record)
Specified by:
format in class java.util.logging.Formatter