C# 클래스 CK.Core.ActivityMonitorTextWriterClient

Formats the activity and pushes piece of texts to an Action{T} where T is a string.
상속: ActivityMonitorTextHelperClient
파일 보기 프로젝트 열기: Invenietis/ck-core 1 사용 예제들

공개 메소드들

메소드 설명
ActivityMonitorTextWriterClient ( Action writer ) : System

Initializes a new ActivityMonitorTextWriterClient bound to a function that must write a string.

ActivityMonitorTextWriterClient ( Action writer, LogFilter filter ) : System

Initializes a new ActivityMonitorTextWriterClient bound to a function that must write a string, with a filter.

DumpException ( StringBuilder w, string prefix, bool displayMessage, Exception ex ) : void

Recursively dumps an Exception as readable text.

보호된 메소드들

메소드 설명
OnContinueOnSameLevel ( ActivityMonitorLogData data ) : void

Writes all information.

OnEnterLevel ( ActivityMonitorLogData data ) : void

Writes all the information.

OnGroupClose ( IActivityLogGroup g, IReadOnlyList conclusions ) : void

Writes group conclusion and updates internally managed line prefix.

OnGroupOpen ( IActivityLogGroup g ) : void

Writes a group opening.

OnLeaveLevel ( LogLevel level ) : void

Updates the internally maintained prefix for lines.

메소드 상세

ActivityMonitorTextWriterClient() 공개 메소드

Initializes a new ActivityMonitorTextWriterClient bound to a function that must write a string.
public ActivityMonitorTextWriterClient ( Action writer ) : System
writer Action Function that writes the content.
리턴 System

ActivityMonitorTextWriterClient() 공개 메소드

Initializes a new ActivityMonitorTextWriterClient bound to a function that must write a string, with a filter.
public ActivityMonitorTextWriterClient ( Action writer, LogFilter filter ) : System
writer Action Function that writes the content.
filter LogFilter Filter to apply
리턴 System

DumpException() 정적인 공개 메소드

Recursively dumps an Exception as readable text.
static public DumpException ( StringBuilder w, string prefix, bool displayMessage, Exception ex ) : void
w StringBuilder The TextWriter to write to.
prefix string Prefix that will start all lines.
displayMessage bool Whether the exception message must be displayed or skip.
ex System.Exception The exception to display.
리턴 void

OnContinueOnSameLevel() 보호된 메소드

Writes all information.
protected OnContinueOnSameLevel ( ActivityMonitorLogData data ) : void
data ActivityMonitorLogData Log data.
리턴 void

OnEnterLevel() 보호된 메소드

Writes all the information.
protected OnEnterLevel ( ActivityMonitorLogData data ) : void
data ActivityMonitorLogData Log data.
리턴 void

OnGroupClose() 보호된 메소드

Writes group conclusion and updates internally managed line prefix.
protected OnGroupClose ( IActivityLogGroup g, IReadOnlyList conclusions ) : void
g IActivityLogGroup Group that must be closed.
conclusions IReadOnlyList Conclusions for the group.
리턴 void

OnGroupOpen() 보호된 메소드

Writes a group opening.
protected OnGroupOpen ( IActivityLogGroup g ) : void
g IActivityLogGroup Group information.
리턴 void

OnLeaveLevel() 보호된 메소드

Updates the internally maintained prefix for lines.
protected OnLeaveLevel ( LogLevel level ) : void
level LogLevel Previous level.
리턴 void