C# 클래스 NLog.Targets.ColoredConsoleTarget

상속: NLog.Targets.TargetWithLayoutHeaderAndFooter
파일 보기 프로젝트 열기: NLog/NLog 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ColorizeEscapeSequences void
GetMatchingRowHighlightingRule NLog.Targets.ConsoleRowHighlightingRule
IsColorChange bool
WriteToOutput void

공개 메소드들

메소드 설명
ColoredConsoleTarget ( ) : NLog.Common

Initializes a new instance of the ColoredConsoleTarget class.

The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message}

ColoredConsoleTarget ( string name ) : NLog.Common

Initializes a new instance of the ColoredConsoleTarget class.

The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message}

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
ColorizeEscapeSequences ( TextWriter output, string message, ColorPair startingColor, ColorPair defaultColor ) : void
GetMatchingRowHighlightingRule ( LogEventInfo logEvent ) : NLog.Targets.ConsoleRowHighlightingRule
IsColorChange ( ConsoleOutputColor targetColor, ConsoleColor oldColor ) : bool
WriteToOutput ( LogEventInfo logEvent, string message ) : void

메소드 상세

CloseTarget() 보호된 메소드

Closes the target and releases any unmanaged resources.
protected CloseTarget ( ) : void
리턴 void

ColoredConsoleTarget() 공개 메소드

Initializes a new instance of the ColoredConsoleTarget class.
The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message}
public ColoredConsoleTarget ( ) : NLog.Common
리턴 NLog.Common

ColoredConsoleTarget() 공개 메소드

Initializes a new instance of the ColoredConsoleTarget class.
The default value of the layout is: ${longdate}|${level:uppercase=true}|${logger}|${message}
public ColoredConsoleTarget ( string name ) : NLog.Common
name string Name of the target.
리턴 NLog.Common

InitializeTarget() 보호된 메소드

Initializes the target.
protected InitializeTarget ( ) : void
리턴 void

Write() 보호된 메소드

Writes the specified log event to the console highlighting entries and words based on a set of defined rules.
protected Write ( LogEventInfo logEvent ) : void
logEvent LogEventInfo Log event.
리턴 void