ConsoleLoggerOptions.UseUtcTimestamp 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
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
否则。 默认为 false
。
- 属性