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 ()

Since: API Level 1

Constructs a new SimpleFormatter.

Public Methods

public String format (LogRecord r)

Since: 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.