SimpleConsoleFormatterOptions 類別

定義

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

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

建構函式

SimpleConsoleFormatterOptions()

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

屬性

ColorBehavior

決定在記錄訊息時使用色彩的時機。

IncludeScopes

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

(繼承來源 ConsoleFormatterOptions)
SingleLine

指出是否在單行中記錄完整訊息。

TimestampFormat

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

(繼承來源 ConsoleFormatterOptions)
UseUtcTimestamp

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

(繼承來源 ConsoleFormatterOptions)

方法

Equals(Object)

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

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

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

(繼承來源 Object)

適用於