to top
Android APIs
public class

SimpleFormatter

extends Formatter
java.lang.Object
   ↳ java.util.logging.Formatter
     ↳ java.util.logging.SimpleFormatter

Class Overview

SimpleFormatter can be used to print a summary of the information contained in a LogRecord object in a human readable format.

Summary

Public Constructors
SimpleFormatter()
Constructs a new SimpleFormatter.
Public Methods
String format( LogRecord r)
Converts a LogRecord object into a human readable string representation.
[Expand]
Inherited Methods
From class java.util.logging.Formatter
From class java.lang.Object

Public Constructors

public SimpleFormatter ()

Added in API level 1

Constructs a new SimpleFormatter.

Public Methods

public String format (LogRecord r)

Added in API level 1

Converts a LogRecord object into a human readable string representation.

Parameters
r the log record to be formatted into a string.
Returns
  • the formatted string.
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.