Skip to content

Most visited

Recently visited

navigation
Added in API level 1

SimpleFormatter

public class SimpleFormatter
extends Formatter

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


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.

Inherited methods

From class java.util.logging.Formatter
From class java.lang.Object

Public constructors

SimpleFormatter

Added in API level 1
SimpleFormatter ()

Constructs a new SimpleFormatter.

Public methods

format

Added in API level 1
String format (LogRecord r)

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.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.