org.perf.log.logger
Class PerfLogMessageFormatter
java.lang.Object
java.util.logging.Formatter
org.perf.log.logger.PerfLogMessageFormatter
public class PerfLogMessageFormatter
- extends java.util.logging.Formatter
This class is used to format the entries in the perf log that can be retrieved using splunk
or log scrapper tools
All the log entries will be prefixed with the formatted TimeStamp as follows: [MM/dd/yy HH:mm:ss:SSS z]
For e.g; [06/04/12 12:49:29:613 CDT] PERFLOG(SUCCESS) ......
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 |
PerfLogMessageFormatter
public PerfLogMessageFormatter(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)