SimpleConsoleFormatterOptions 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
內建預設主控台記錄格式器的選項。
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 類別的新執行個體。 |
屬性
ColorBehavior |
決定在記錄訊息時使用色彩的時機。 |
IncludeScopes |
取得或設定是否應該包含範圍。 (繼承來源 ConsoleFormatterOptions) |
SingleLine |
指出是否在單行中記錄完整訊息。 |
TimestampFormat |
取得或設定用來格式化記錄訊息中時間戳記的格式字串。 (繼承來源 ConsoleFormatterOptions) |
UseUtcTimestamp |
取得或設定值,指出是否應該將 UTC 時區用於記錄訊息中的時間戳記。 (繼承來源 ConsoleFormatterOptions) |
方法
Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
GetHashCode() |
做為預設雜湊函式。 (繼承來源 Object) |
GetType() |
取得目前執行個體的 Type。 (繼承來源 Object) |
MemberwiseClone() |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
ToString() |
傳回代表目前物件的字串。 (繼承來源 Object) |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應