SimpleConsoleFormatterOptions.ColorBehavior 属性

定义

确定记录消息时何时使用颜色。

public:
 property Microsoft::Extensions::Logging::Console::LoggerColorBehavior ColorBehavior { Microsoft::Extensions::Logging::Console::LoggerColorBehavior get(); void set(Microsoft::Extensions::Logging::Console::LoggerColorBehavior value); };
public Microsoft.Extensions.Logging.Console.LoggerColorBehavior ColorBehavior { get; set; }
member this.ColorBehavior : Microsoft.Extensions.Logging.Console.LoggerColorBehavior with get, set
Public Property ColorBehavior As LoggerColorBehavior

属性值

确定记录器颜色行为的 对象。

适用于