org.perf.log.app.logger
Class AppLogMessageFormatter
java.lang.Object
java.util.logging.Formatter
org.perf.log.app.logger.AppLogMessageFormatter
public class AppLogMessageFormatter
- extends java.util.logging.Formatter
This class is used to format the message as passed.
MessageFormat can be edited to add any prefix or suffix to log messages.
Method Summary |
java.lang.String |
format(java.util.logging.LogRecord record)
|
static java.lang.String |
getStackTrace(java.lang.Throwable t)
|
Methods inherited from class java.util.logging.Formatter |
formatMessage, getHead, getTail |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AppLogMessageFormatter
public AppLogMessageFormatter(java.text.MessageFormat mf)
format
public java.lang.String format(java.util.logging.LogRecord record)
- Specified by:
format
in class java.util.logging.Formatter
getStackTrace
public static java.lang.String getStackTrace(java.lang.Throwable t)