toolbox.logging
Class LogFormatter

Package class diagram package LogFormatter
java.lang.Object
  extended by java.util.logging.Formatter
      extended by toolbox.logging.LogFormatter

public class LogFormatter
extends java.util.logging.Formatter

Custom formatter for toolbox API's


Constructor Summary
LogFormatter()
          Default constructor.
 
Method Summary
 java.lang.String format(java.util.logging.LogRecord record)
          Format the given LogRecord.
 
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
 

Constructor Detail

LogFormatter

public LogFormatter()
Default constructor.

Set up the date format

Method Detail

format

public java.lang.String format(java.util.logging.LogRecord record)
Format the given LogRecord.

Specified by:
format in class java.util.logging.Formatter
Returns:
String containing a log message in the following format: "[02Jan2004 12:30:12] [Level] [class meth] message"