Udostępnij za pośrednictwem


Formatter.Format(LogRecord) Method

Definition

Format the given log record and return the formatted string.

[Android.Runtime.Register("format", "(Ljava/util/logging/LogRecord;)Ljava/lang/String;", "GetFormat_Ljava_util_logging_LogRecord_Handler")]
public abstract string? Format (Java.Util.Logging.LogRecord? record);
[<Android.Runtime.Register("format", "(Ljava/util/logging/LogRecord;)Ljava/lang/String;", "GetFormat_Ljava_util_logging_LogRecord_Handler")>]
abstract member Format : Java.Util.Logging.LogRecord -> string

Parameters

record
LogRecord

the log record to be formatted.

Returns

the formatted log record

Attributes

Remarks

Format the given log record and return the formatted string.

The resulting formatted String will normally include a localized and formatted version of the LogRecord's message field. It is recommended to use the Formatter#formatMessage convenience method to localize and format the message field.

Java documentation for java.util.logging.Formatter.format(java.util.logging.LogRecord).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to