org.objectweb.easybeans.log
Class JDKFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by org.objectweb.easybeans.log.JDKFormatter

public class JDKFormatter
extends java.util.logging.Formatter

Format a record into a readable message ! not too long.

Author:
Florent Benoit

Field Summary
private  java.util.Date date
          Date object used to convert the data into printable message.
private static java.lang.String LINE_SEPARATOR
          Line separator.
private static java.lang.String PATTERN_DATE_TIME
          Date formatter, use the short for date, medium for the time.
 
Constructor Summary
JDKFormatter()
           
 
Method Summary
 java.lang.String format(java.util.logging.LogRecord logRecord)
          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
 

Field Detail

PATTERN_DATE_TIME

private static final java.lang.String PATTERN_DATE_TIME
Date formatter, use the short for date, medium for the time.

See Also:
Constant Field Values

LINE_SEPARATOR

private static final java.lang.String LINE_SEPARATOR
Line separator.


date

private java.util.Date date
Date object used to convert the data into printable message.

Constructor Detail

JDKFormatter

public JDKFormatter()
Method Detail

format

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

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