org.rococoa.test
Class LogFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by org.rococoa.test.LogFormatter

public class LogFormatter
extends java.util.logging.Formatter

Print a brief summary of the LogRecord in a human readable format ON ONE LINE, and include details of the thread from which it was logged. Blatant copy of the default 'SimpleFormatter' included with JDK.


Constructor Summary
LogFormatter()
           
 
Method Summary
protected  void appendExtras(java.util.logging.LogRecord record, java.lang.StringBuffer sb)
           
 java.lang.String format(java.util.logging.LogRecord record)
          Format the given LogRecord.
 
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

LogFormatter

public LogFormatter()
Method Detail

format

public java.lang.String format(java.util.logging.LogRecord record)
Format the given LogRecord.

Specified by:
format in class java.util.logging.Formatter
Parameters:
record - the log record to be formatted.
Returns:
a formatted log record

appendExtras

protected void appendExtras(java.util.logging.LogRecord record,
                            java.lang.StringBuffer sb)


Copyright © 2009. All Rights Reserved.