Udostępnij za pośrednictwem


XMLFormatter.Format(LogRecord) Method

Definition

Format the given message to XML.

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

Parameters

record
LogRecord

the log record to be formatted.

Returns

a formatted log record

Attributes

Remarks

Format the given message to XML.

This method can be overridden in a subclass. It is recommended to use the Formatter#formatMessage convenience method to localize and format the message field.

Java documentation for java.util.logging.XMLFormatter.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