 | ColoredConsoleTargetDetectOutputRedirected Property |
Gets or sets a value indicating whether to auto-check if the console has been redirected to file
- Disables coloring logic when System.Console.IsOutputRedirected =
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic bool DetectOutputRedirected { get; set; }Public Property DetectOutputRedirected As Boolean
Get
Set
Dim instance As ColoredConsoleTarget
Dim value As Boolean
value = instance.DetectOutputRedirected
instance.DetectOutputRedirected = value
member DetectOutputRedirected : bool with get, set
Property Value
Type:
Boolean
RemarksDefault:
See Also