Property | Type | Description | |
---|---|---|---|
ColorizeEscapeSequences | void | ||
GetMatchingRowHighlightingRule | NLog.Targets.ConsoleRowHighlightingRule | ||
IsColorChange | bool | ||
WriteToOutput | void |
Method | Description | |
---|---|---|
ColoredConsoleTarget ( ) : NLog.Common |
Initializes a new instance of the ColoredConsoleTarget class. The default value of the layout is: |
|
ColoredConsoleTarget ( string name ) : NLog.Common |
Initializes a new instance of the ColoredConsoleTarget class. The default value of the layout is: |
Method | Description | |
---|---|---|
CloseTarget ( ) : void |
Closes the target and releases any unmanaged resources.
|
|
InitializeTarget ( ) : void |
Initializes the target.
|
|
Write ( LogEventInfo logEvent ) : void |
Writes the specified log event to the console highlighting entries and words based on a set of defined rules.
|
Method | Description | |
---|---|---|
ColorizeEscapeSequences ( |
||
GetMatchingRowHighlightingRule ( LogEventInfo logEvent ) : NLog.Targets.ConsoleRowHighlightingRule | ||
IsColorChange ( ConsoleOutputColor targetColor, ConsoleColor oldColor ) : bool | ||
WriteToOutput ( LogEventInfo logEvent, string message ) : void |
public ColoredConsoleTarget ( ) : NLog.Common | ||
return | NLog.Common |
public ColoredConsoleTarget ( string name ) : NLog.Common | ||
name | string | Name of the target. |
return | NLog.Common |
protected Write ( LogEventInfo logEvent ) : void | ||
logEvent | LogEventInfo | Log event. |
return | void |