© 2002 - Lorne Brinkman
www.TheObjectGuy.com
Lorne@TheObjectGuy.com

com.bitfactoryinc.logging
Class LogEntryFormatter

java.lang.Object
  |
  +--com.bitfactoryinc.logging.LogEntryFormatter
Direct Known Subclasses:
LogEntryMessageOnlyFormatter, LogEntryStandardFormatter

public abstract class LogEntryFormatter
extends java.lang.Object

Concrete subclasses of this abstract class are responsible for formatting LogEntries. Subclasses should override the asString(LogEntry) method. Also, users can freely modify the dateFormat attribute for timestamp formatting.


Field Summary
private  java.text.DateFormat dateFormat
           
 
Constructor Summary
LogEntryFormatter()
           
 
Method Summary
abstract  java.lang.String asString(LogEntry aLogEntry)
           
protected  java.lang.String dateString(LogEntry aLogEntry)
           
 java.text.DateFormat getDateFormat()
           
 void setDateFormat(java.text.DateFormat newDateFormat)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

dateFormat

private java.text.DateFormat dateFormat
Constructor Detail

LogEntryFormatter

public LogEntryFormatter()
Method Detail

asString

public abstract java.lang.String asString(LogEntry aLogEntry)

dateString

protected java.lang.String dateString(LogEntry aLogEntry)

getDateFormat

public java.text.DateFormat getDateFormat()

setDateFormat

public void setDateFormat(java.text.DateFormat newDateFormat)

© 2002 - Lorne Brinkman
www.TheObjectGuy.com
Lorne@TheObjectGuy.com