| File: LoggerColorBehavior.cs | Web Access |
| Project: src\runtime\src\libraries\Microsoft.Extensions.Logging.Console\src\Microsoft.Extensions.Logging.Console.csproj (Microsoft.Extensions.Logging.Console) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.Logging.Console { /// <summary> /// Describes when to use color when logging messages. /// </summary> public enum LoggerColorBehavior { /// <summary> /// Use the default color behavior, enabling color except when the console output is redirected. /// </summary> /// <remarks> /// Enables color except when the console output is redirected. /// </remarks> Default, /// <summary> /// Enable color for logging. /// </summary> Enabled, /// <summary> /// Disable color for logging. /// </summary> Disabled, } }