ConsoleLoggerOptions.TimestampFormat 属性

定义

注意

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

获取或设置用于设置日志记录消息中时间戳的格式字符串。

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

属性值

默认为 null

属性

适用于