org.perf.log.app.logger
Class AppLogMessageFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by 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.


Constructor Summary
AppLogMessageFormatter(java.text.MessageFormat mf)
           
 
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
 

Constructor Detail

AppLogMessageFormatter

public AppLogMessageFormatter(java.text.MessageFormat mf)
Method Detail

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)