ConsoleLoggerOptions 类
定义
ConsoleLogger 的选项。Options for a ConsoleLogger.
public ref class ConsoleLoggerOptions
public class ConsoleLoggerOptions
type ConsoleLoggerOptions = class
Public Class ConsoleLoggerOptions
- 继承
-
ConsoleLoggerOptions
构造函数
| ConsoleLoggerOptions() |
属性
| DisableColors |
已过时。
为 |
| Format |
已过时。
获取或设置日志消息格式。Gets or sets log message format. 默认为 Default。Defaults to Default. |
| FormatterName |
要使用的日志消息格式化程序的名称。The name of the log message formatter to use. 默认为“simple”。Defaults to "simple". |
| IncludeScopes |
已过时。
为 |
| LogToStandardErrorThreshold |
获取或设置一个值,该值指示写入 |
| TimestampFormat |
已过时。
获取或设置用于在日志记录消息中设置时间戳格式的格式字符串。Gets or sets format string used to format timestamp in logging messages. 默认为 |
| UseUtcTimestamp |
已过时。
获取或设置一个值,该值指示是否应在记录消息时对时间戳使用 UTC 时区。Gets or sets a value that indicates whether or not UTC timezone should be used to for timestamps in logging messages. 默认为 |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |