Oracle Java ME Embedded

com.oracle.util.logging
Class SimpleFormatter

java.lang.Object
  extended by com.oracle.util.logging.Formatter
      extended by com.oracle.util.logging.SimpleFormatter

public class SimpleFormatter
extends Formatter

Print a brief summary of the LogRecord in a human readable format. The summary will typically be 1 or 2 lines.

Configuration: The CLDC version of this class does not include a mechanism to customize the formatting like the Java SE counterpart of this class. The formatting of the log message is implementation-specific.


Constructor Summary
SimpleFormatter()
           
 
Method Summary
 java.lang.String format(LogRecord record)
          Format the given LogRecord.
 
Methods inherited from class com.oracle.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

SimpleFormatter

public SimpleFormatter()
Method Detail

format

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

The CLDC implementation of this class does not include a mechanism to customize the formatting such as the JDK counterpart of this class. The formatting of the log message is implementation-specific.

This method can also be overridden in a subclass. It is recommended to use the Formatter.formatMessage(com.oracle.util.logging.LogRecord) convenience method to localize and format the message field.

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

Oracle Java ME Embedded

Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.