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 LogRecord: the log record to be formatted into a string.
Returns
String the formatted string.