|
Forward Computing and Control Pty. Ltd. Logging Package V1.3.0 2004/11/22 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.logging.Formatter
au.com.forward.logging.RobustFormatter
public abstract class RobustFormatter
A Robust formatter for LogRecords.
Constructor Summary | |
---|---|
RobustFormatter()
|
Method Summary | |
---|---|
java.lang.String |
formatMessage(java.util.logging.LogRecord record)
Format the message using resource bundle if available catch all possible errors and handle them here return the most information we can. |
protected abstract java.lang.String |
newLineString()
Returns the newLine setting for this class |
static java.lang.String |
toString(java.lang.Object obj)
Return toString of object handling null inputs if obj is a Throwable returns the stack trace as a String . |
Methods inherited from class java.util.logging.Formatter |
---|
format, getHead, getTail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RobustFormatter()
Method Detail |
---|
protected abstract java.lang.String newLineString()
public static java.lang.String toString(java.lang.Object obj)
Throwable
returns the stack trace as a String
.
obj
- the Object to convert to a String
.
public java.lang.String formatMessage(java.util.logging.LogRecord record)
formatMessage
in class java.util.logging.Formatter
record
- the log record to be formatted
|
Forward Computing and Control Pty. Ltd. Logging Package V1.3.0 2004/11/22 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |