XMLFormatter.Format(LogRecord) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將給定訊息格式化為 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
參數
- record
- LogRecord
日誌記錄格式化。
傳回
格式化日誌記錄
- 屬性
備註
將給定訊息格式化為 XML。
此方法可在子類別中被覆寫。 建議使用 Formatter#formatMessage 便利性方法來本地化並格式化訊息欄位。
Java 文件 java.util.logging.XMLFormatter.format(java.util.logging.LogRecord)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。