org.crosswire.common.util
Class PatternFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by org.crosswire.common.util.PatternFormatter

public class PatternFormatter
extends Formatter

Formats a log entry by pattern.

Author:
DM Smith, Joe Walker [joe at eireneh dot com]
See Also:
for license details.
The copyright to this program is held by it's authors.

Field Summary
private  Date dat
           
private static String DEFAULT_FORMAT
           
private  String lineSeparator
           
 
Constructor Summary
PatternFormatter()
           
 
Method Summary
 String format(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
 

Field Detail

dat

private Date dat

DEFAULT_FORMAT

private static final String DEFAULT_FORMAT
See Also:
Constant Field Values

lineSeparator

private String lineSeparator
Constructor Detail

PatternFormatter

public PatternFormatter()
Method Detail

format

public String format(LogRecord record)
Format the given LogRecord.

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

Copyright ? 2003-2011