ColoredConsoleTarget Properties |
The ColoredConsoleTarget type exposes the following members.
Name | Description | |
---|---|---|
AutoFlush |
Gets or sets a value indicating whether to auto-flush after WriteLine | |
DetectConsoleAvailable |
Gets or sets a value indicating whether to auto-check if the console is available.
- Disables console writing if Environment.UserInteractive = False (Windows Service)
- Disables console writing if Console Standard Input is not available (Non-Console-App)
| |
DetectOutputRedirected |
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 = true
| |
EnableAnsiOutput |
Enables output using ANSI Color Codes
| |
Encoding |
The encoding for writing messages to the Console.
| |
Footer |
Gets or sets the footer.
(Inherited from TargetWithLayoutHeaderAndFooter.) | |
Header |
Gets or sets the header.
(Inherited from TargetWithLayoutHeaderAndFooter.) | |
Layout |
Gets or sets the text to be rendered.
(Inherited from TargetWithLayoutHeaderAndFooter.) | |
Name |
Gets or sets the name of the target.
(Inherited from Target.) | |
RowHighlightingRules |
Gets the row highlighting rules.
| |
StdErr |
Gets or sets a value indicating whether to send the log messages to the standard error instead of the standard output.
| |
UseDefaultRowHighlightingRules |
Gets or sets a value indicating whether to use default row highlighting rules.
| |
WordHighlightingRules |
Gets the word highlighting rules.
|