Share via


JsonConsoleFormatterOptions 類別

定義

內建 JSON 主控台記錄格式器的選項。

public ref class JsonConsoleFormatterOptions : Microsoft::Extensions::Logging::Console::ConsoleFormatterOptions
public class JsonConsoleFormatterOptions : Microsoft.Extensions.Logging.Console.ConsoleFormatterOptions
type JsonConsoleFormatterOptions = class
    inherit ConsoleFormatterOptions
Public Class JsonConsoleFormatterOptions
Inherits ConsoleFormatterOptions
繼承
JsonConsoleFormatterOptions

建構函式

JsonConsoleFormatterOptions()

初始化 JsonConsoleFormatterOptions 類別的新執行個體。

屬性

IncludeScopes

取得或設定是否應該包含範圍。

(繼承來源 ConsoleFormatterOptions)
JsonWriterOptions

取得或設定 JSON 寫入器選項執行個體。

TimestampFormat

取得或設定用來格式化記錄訊息中時間戳的格式字串。

(繼承來源 ConsoleFormatterOptions)
UseUtcTimestamp

取得或設定值,指出是否應該將UTC時區用於記錄訊息中的時間戳。

(繼承來源 ConsoleFormatterOptions)

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於