NetKernel APIs


com.ten60.netkernel.util
Class ConsoleFormatter

java.lang.Object
  extended byjava.util.logging.Formatter
      extended bycom.ten60.netkernel.util.ConsoleFormatter

public class ConsoleFormatter
extends Formatter

A custom formatter for simple tidy output on the console


Constructor Summary
ConsoleFormatter()
           
 
Method Summary
 String format(LogRecord record)
          Format the given log record and return the formatted string.
 
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

ConsoleFormatter

public ConsoleFormatter()
Method Detail

format

public String format(LogRecord record)
Format the given log record and return the formatted string.

The resulting formatted String will normally include a localized and formated version of the LogRecord's message field. The Formatter.formatMessage convenience method can (optionally) be used to localize and format the message field.

Parameters:
record - the log record to be formatted.
Returns:
the formatted log record

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.