C# 클래스 CK.Core.ActivityMonitorLogData

Data required by IActivityMonitor.UnfilteredLog. This is also the base class for ActivityMonitorGroupData.
파일 보기 프로젝트 열기: Invenietis/ck-core 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
FileName string
Level LogLevel
LineNumber int
MaskedLevel LogLevel

공개 메소드들

메소드 설명
ActivityMonitorLogData ( LogLevel level, Exception exception, CKTrait tags, string text, DateTimeStamp logTime, string fileName, int lineNumber ) : System

Initializes a new ActivityMonitorLogData.

ActivityMonitorLogData ( LogLevel level, string fileName, int lineNumber ) : System

Preinitializes a new ActivityMonitorLogData: Initialize has yet to be called.

EnsureExceptionData ( ) : CKExceptionData

Gets or creates the CKExceptionData that captures exception information. If P:Exception is null, this returns null.

Initialize ( string text, Exception exception, CKTrait tags, DateTimeStamp logTime ) : void

Initializes this data.

비공개 메소드들

메소드 설명
ActivityMonitorLogData ( ) : System

Used only to initialize a ActivityMonitorGroupSender for rejected opened group.

CombineTagsAndAdjustLogTime ( CKTrait tags, DateTimeStamp lastLogTime ) : DateTimeStamp

메소드 상세

ActivityMonitorLogData() 공개 메소드

Initializes a new ActivityMonitorLogData.
public ActivityMonitorLogData ( LogLevel level, Exception exception, CKTrait tags, string text, DateTimeStamp logTime, string fileName, int lineNumber ) : System
level LogLevel Log level. Can not be .
exception System.Exception Exception of the log. Can be null.
tags CKTrait Tags (from ) to associate to the log. It will be union-ed with the current .
text string Text of the log. Can be null or empty only if is not null: the is the text.
logTime DateTimeStamp /// Time of the log. /// You can use or IActivityMonitor.NextLogTime() extension method. ///
fileName string Name of the source file that emitted the log. Can be null.
lineNumber int Line number in the source file that emitted the log. Can be null.
리턴 System

ActivityMonitorLogData() 공개 메소드

Preinitializes a new ActivityMonitorLogData: Initialize has yet to be called.
public ActivityMonitorLogData ( LogLevel level, string fileName, int lineNumber ) : System
level LogLevel Log level. Can not be .
fileName string Name of the source file that emitted the log. Can be null.
lineNumber int Line number in the source file that emitted the log. Can be null.
리턴 System

EnsureExceptionData() 공개 메소드

Gets or creates the CKExceptionData that captures exception information. If P:Exception is null, this returns null.
public EnsureExceptionData ( ) : CKExceptionData
리턴 CKExceptionData

Initialize() 공개 메소드

Initializes this data.
public Initialize ( string text, Exception exception, CKTrait tags, DateTimeStamp logTime ) : void
text string /// Text of the log. Can be null or empty: if is not null, /// the becomes the text otherwise is used. ///
exception System.Exception Exception of the log. Can be null.
tags CKTrait /// Tags (from ) to associate to the log. /// It will be union-ed with the current .
logTime DateTimeStamp /// Time of the log. /// You can use or IActivityMonitor.NextLogTime() extension method. ///
리턴 void

프로퍼티 상세

FileName 공개적으로 프로퍼티

Name of the source file that emitted the log. Can be null.
public string FileName
리턴 string

Level 공개적으로 프로퍼티

Log level. Can not be LogLevel.None. If the log has been successfully filtered, the LogLevel.IsFiltered bit flag is set.
public LogLevel Level
리턴 LogLevel

LineNumber 공개적으로 프로퍼티

Line number in the source file that emitted the log. Can be null.
public int LineNumber
리턴 int

MaskedLevel 공개적으로 프로퍼티

The actual level (LogLevel.Trace to LogLevel.Fatal) associated to this group without LogLevel.IsFiltered bit flag.
public LogLevel MaskedLevel
리턴 LogLevel