NetKernel APIs


com.ten60.netkernel.util
Class ConsoleFormatter

java.lang.Object
  extended by java.util.logging.Formatter
      extended by com.ten60.netkernel.util.ConsoleFormatter

public class ConsoleFormatter
extends java.util.logging.Formatter

A custom formatter for simple tidy output on the console


Constructor Summary
ConsoleFormatter()
           
 
Method Summary
 java.lang.String format(java.util.logging.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 java.lang.String format(java.util.logging.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.

Specified by:
format in class java.util.logging.Formatter
Parameters:
record - the log record to be formatted.
Returns:
the formatted log record

NetKernel APIs


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