語言

ConsoleLoggerOptions 類別

定義

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

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

建構函式

名稱 Description
ConsoleLoggerOptions()

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

屬性

名稱 Description
DisableColors
已淘汰.

取得或設定一個值,指示顏色是否被停用。

Format
已淘汰.

取得或設定日誌訊息格式。

FormatterName

取得或設定日誌訊息格式化器的名稱。

IncludeScopes
已淘汰.

取得或設定一個值,指示是否包含範圍。

LogToStandardErrorThreshold

取得或設定值,表示寫入 Console.Error至的訊息最低層級。

MaxQueueLength

接收或設定最大排隊訊息數量。

QueueFullMode

當隊列滿時,會取得或設定想要的主控台記錄器行為。

TimestampFormat
已淘汰.

取得或設定用於格式化日誌訊息時間戳的格式字串。

UseUtcTimestamp
已淘汰.

取得或設定一個值,指示是否應使用UTC時區來格式化日誌訊息的時間戳。

適用於