Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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.