com.caucho.log
Class TimestampFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by com.caucho.log.TimestampFormatter
Direct Known Subclasses:
TimestampLogFormatter

@Module
public class TimestampFormatter
extends java.util.logging.Formatter

Formats a timestamp


Constructor Summary
TimestampFormatter()
          Create formatter.
 
Method Summary
 java.lang.String format(java.util.logging.LogRecord log)
          Formats the record
 void setTimestamp(java.lang.String timestamp)
           
 void setValue(java.lang.String timestamp)
           
 
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

TimestampFormatter

public TimestampFormatter()
Create formatter.

Method Detail

setValue

public void setValue(java.lang.String timestamp)

setTimestamp

public void setTimestamp(java.lang.String timestamp)

format

public java.lang.String format(java.util.logging.LogRecord log)
Formats the record

Specified by:
format in class java.util.logging.Formatter