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
|
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
dateFormat
private java.text.DateFormat dateFormat
LogEntryFormatter
public LogEntryFormatter()
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)