Share via


LogFormatter 類別

定義

格式化用於記錄用途的值。

public static class LogFormatter
type LogFormatter = class
Public Class LogFormatter
繼承
LogFormatter

欄位

MAX_LOG_MESSAGE_SIZE

格式化用於記錄用途的值。

方法

ParseDate(String)

剖析日期。

PrintDate(DateTime)

公用程式函式,可將 物件轉換成 DateTime Logger 子系統所使用的可列印資料格式。

PrintException(Exception)

公用程式函式可將例外狀況轉換成可列印的格式,包括展開和格式化任何巢狀子運算式。

PrintExceptionWithoutStackTrace(Exception)

格式化用於記錄用途的值。

PrintTime(DateTime)

公用程式函式,可將 物件轉換成 DateTime Logger 子系統所使用的可列印時間格式。

SetExceptionDecoder(Type, Func<Exception,String>)

設定指定之例外狀況類型的例外狀況解碼器。

適用於