qflib 0.98.1

de.qfs.lib.log
Class DefaultLogFormat

java.lang.Object
  |
  +--de.qfs.lib.log.DefaultLogFormat
All Implemented Interfaces:
LogFormat

public class DefaultLogFormat
extends java.lang.Object
implements LogFormat

This is a default implementation of the LogFormat interface that produces the same result as the LogEntry.toString method before Version 0.98.0

Since:
0.98.0
Version:
$Revision: 1.2 $
Author:
Oliver Brandt, Gregor Schmid

Constructor Summary
DefaultLogFormat()
          Create a new DefaultLogFormat that uses a default DateFormat of HH:mm:ss.SSS for timestamps.
DefaultLogFormat(java.text.DateFormat df)
          Create a new DefaultLogFormat.
 
Method Summary
 java.lang.String format(LogEntry entry)
          Format one LogEntry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLogFormat

public DefaultLogFormat()
Create a new DefaultLogFormat that uses a default DateFormat of HH:mm:ss.SSS for timestamps.

DefaultLogFormat

public DefaultLogFormat(java.text.DateFormat df)
Create a new DefaultLogFormat.
Parameters:
df - The format to use for timestamps.
Method Detail

format

public java.lang.String format(LogEntry entry)
Format one LogEntry.
Specified by:
format in interface LogFormat
Parameters:
entry - The LogEntry to format.
Returns:
A String representation for the LogEntry.

qflib 0.98.1