Share via


ConsoleLoggerOptions 類別

定義

Microsoft.Extensions.Logging.Console.ConsoleLogger 的選項。

public ref class ConsoleLoggerOptions
public class ConsoleLoggerOptions
type ConsoleLoggerOptions = class
Public Class ConsoleLoggerOptions
繼承
ConsoleLoggerOptions

建構函式

ConsoleLoggerOptions()

Microsoft.Extensions.Logging.Console.ConsoleLogger 的選項。

屬性

DisableColors
已淘汰.

true 時停用色彩。

Format
已淘汰.

取得或設定記錄訊息格式。

FormatterName

要使用的記錄訊息格式器名稱。

IncludeScopes
已淘汰.

true 時包含範圍。

LogToStandardErrorThreshold

取得或設定值,指出寫入至 Console.Error之訊息的最小層級。

MaxQueueLength

取得或設定加入佇列訊息的最大數目。

QueueFullMode

取得或設定佇列已滿時所需的控制台記錄器行為。

TimestampFormat
已淘汰.

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

UseUtcTimestamp
已淘汰.

取得或設定值,這個值表示是否應該使用UTC時區來記錄訊息中的時間戳。

方法

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於