org.jcoderz.commons
Class LogFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by org.jcoderz.commons.LogFormatter

public class LogFormatter
extends Formatter

This type implements a Formatter to be used for logging in a format, which allows filtering of log files with standard tools and little effort. It formats both standard a LogRecord and instances of Loggable.


Field Summary
static String MSG_LOGGER_STACK_TRACE
          Name of the logger that controls which log level is needed as minimum to trigger stack traces with log messages.
 
Constructor Summary
LogFormatter()
           
 
Method Summary
 String format(LogRecord record)
          
 
Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_LOGGER_STACK_TRACE

public static final String MSG_LOGGER_STACK_TRACE
Name of the logger that controls which log level is needed as minimum to trigger stack traces with log messages.

See Also:
Constant Field Values
Constructor Detail

LogFormatter

public LogFormatter()
Method Detail

format

public String format(LogRecord record)

Specified by:
format in class Formatter


Copyright 2007 The jCoderZ Project.