語言

ConsoleLoggerOptions.UseUtcTimestamp 屬性

定義

警告

ConsoleLoggerOptions.UseUtcTimestamp has been deprecated. Use ConsoleFormatterOptions.UseUtcTimestamp instead.

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

public:
 property bool UseUtcTimestamp { bool get(); void set(bool value); };
[System.Obsolete("ConsoleLoggerOptions.UseUtcTimestamp has been deprecated. Use ConsoleFormatterOptions.UseUtcTimestamp instead.")]
public bool UseUtcTimestamp { get; set; }
[<System.Obsolete("ConsoleLoggerOptions.UseUtcTimestamp has been deprecated. Use ConsoleFormatterOptions.UseUtcTimestamp instead.")>]
member this.UseUtcTimestamp : bool with get, set
Public Property UseUtcTimestamp As Boolean

屬性值

true 是否應該使用UTC時區來格式化時間戳記。 預設值為 false。

屬性

適用於