org.xhtmlrenderer.util
Class XRSimpleLogFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by org.xhtmlrenderer.util.XRSimpleLogFormatter

public class XRSimpleLogFormatter
extends Formatter

A java.util.logging.Formatter class that writes a bare-bones log messages, with no origin class name and no date/time.

Author:
Patrick Wright

Constructor Summary
XRSimpleLogFormatter()
          Constructor for the XRSimpleLogFormatter object
 
Method Summary
 String format(LogRecord record)
          Format the given log record and return the formatted string.
 String formatMessage(LogRecord record)
          Localize and format the message string from a log record.
 String getHead(Handler h)
          Return the header string for a set of formatted records.
 String getTail(Handler h)
          Return the tail string for a set of formatted records.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XRSimpleLogFormatter

public XRSimpleLogFormatter()
Constructor for the XRSimpleLogFormatter object

Method Detail

format

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

Specified by:
format in class Formatter
Parameters:
record - PARAM
Returns:
Returns

formatMessage

public String formatMessage(LogRecord record)
Localize and format the message string from a log record.

Overrides:
formatMessage in class Formatter
Parameters:
record - PARAM
Returns:
Returns

getHead

public String getHead(Handler h)
Return the header string for a set of formatted records.

Overrides:
getHead in class Formatter
Parameters:
h - PARAM
Returns:
The head value

getTail

public String getTail(Handler h)
Return the tail string for a set of formatted records.

Overrides:
getTail in class Formatter
Parameters:
h - PARAM
Returns:
The tail value


Copyright © 2013. All Rights Reserved.