net.sf.jso.logging
Class JSOFormatter

java.lang.Object
  extended byjava.util.logging.Formatter
      extended bynet.sf.jso.logging.JSOFormatter

public class JSOFormatter
extends java.util.logging.Formatter

A log record formatter.


Field Summary
static java.lang.String DEFAULT_DATE_FORMAT
          Default date and time format for logger timestamping.
 
Constructor Summary
JSOFormatter()
          Constructs the formatter.
JSOFormatter(java.lang.String pattern, java.util.Locale locale)
          Constructs the formatter.
 
Method Summary
 java.lang.String format(java.util.logging.LogRecord record)
          Format the given log record and return the formatted string.
 
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

DEFAULT_DATE_FORMAT

public static final java.lang.String DEFAULT_DATE_FORMAT
Default date and time format for logger timestamping.

See Also:
Constant Field Values
Constructor Detail

JSOFormatter

public JSOFormatter()
Constructs the formatter.


JSOFormatter

public JSOFormatter(java.lang.String pattern,
                    java.util.Locale locale)
Constructs the formatter.

Parameters:
pattern - The pattern describing the date and time format.
locale - The locale whose date format symbols should be used.
Method Detail

format

public java.lang.String format(java.util.logging.LogRecord record)
Format the given log record and return the formatted string.

Parameters:
record - The log record to be formatted.
Returns:
The formatted log record.