C# 클래스 CK.Core.LogFilter

파일 보기 프로젝트 열기: Invenietis/ck-core 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Debug LogFilter
Group LogLevelFilter
Invalid LogFilter
Line LogLevelFilter
Monitor LogFilter
Off LogFilter
Release LogFilter
Terse LogFilter
Undefined LogFilter
Verbose LogFilter

공개 메소드들

메소드 설명
Combine ( LogFilter other ) : LogFilter

Combines this filter with another one. Line and Group level filters are combined with Combine(LogLevelFilter,LogLevelFilter).

Combine ( LogLevelFilter x, LogLevelFilter y ) : LogLevelFilter

Combines two enums LogLevelFilter into one. The resulting filter is the more verbose one (the smallest level). LogLevelFilter.Invalid is considered as LogLevelFilter.None (it has no impact). This operation is commutative and associative: different order of combination always give the same result.

CombineNoneOnly ( LogFilter other ) : LogFilter

Combines this filter with another one only if Line or Group is LogLevelFilter.None.

Equals ( object obj ) : bool

Overridden to compare Line and Group.

GetHashCode ( ) : int

Overridden to compute hash based on Line and Group values.

HasImpactOn ( LogFilter x ) : bool

Tests if Combine(LogFilter)">combining this and

LogFilter ( LogLevelFilter group, LogLevelFilter line ) : CK.Text

Initializes a new LogFilter with a level for Groups and Line logs.

Parse ( string filter ) : LogFilter

Parses the filter: it can be a predefined filter as ("Undefined", "Debug", "Verbose", etc.) or as {GroupLogLevelFilter,LineLogLevelFilter} pairs like "{None,None}", "{Error,Trace}".

SetGroup ( LogLevelFilter group ) : LogFilter

Returns a LogFilter with a given LogLevelFilter for the Group.

SetLine ( LogLevelFilter line ) : LogFilter

Returns a LogFilter with a given LogLevelFilter for the Line.

ToString ( ) : string

Overridden to show the group and the line level.

TryParse ( string s, LogFilter &f ) : bool

Tries to parse a LogFilter: it can be a predefined filter as ("Undefined", "Debug", "Verbose", etc.) or as {GroupLogLevelFilter,LineLogLevelFilter} pairs like "{None,None}", "{Error,Trace}".

operator ( ) : bool

Equality operator.

메소드 상세

Combine() 공개 메소드

Combines this filter with another one. Line and Group level filters are combined with Combine(LogLevelFilter,LogLevelFilter).
public Combine ( LogFilter other ) : LogFilter
other LogFilter The other filter to combine with this one.
리턴 LogFilter

Combine() 정적인 공개 메소드

Combines two enums LogLevelFilter into one. The resulting filter is the more verbose one (the smallest level). LogLevelFilter.Invalid is considered as LogLevelFilter.None (it has no impact). This operation is commutative and associative: different order of combination always give the same result.
static public Combine ( LogLevelFilter x, LogLevelFilter y ) : LogLevelFilter
x LogLevelFilter First filter level.
y LogLevelFilter Second filter level.
리턴 LogLevelFilter

CombineNoneOnly() 공개 메소드

Combines this filter with another one only if Line or Group is LogLevelFilter.None.
public CombineNoneOnly ( LogFilter other ) : LogFilter
other LogFilter The other filter to combine with this one.
리턴 LogFilter

Equals() 공개 메소드

Overridden to compare Line and Group.
public Equals ( object obj ) : bool
obj object Other object.
리턴 bool

GetHashCode() 공개 메소드

Overridden to compute hash based on Line and Group values.
public GetHashCode ( ) : int
리턴 int

HasImpactOn() 공개 메소드

Tests if Combine(LogFilter)">combining this and
public HasImpactOn ( LogFilter x ) : bool
x LogFilter The other filter.
리턴 bool

LogFilter() 공개 메소드

Initializes a new LogFilter with a level for Groups and Line logs.
public LogFilter ( LogLevelFilter group, LogLevelFilter line ) : CK.Text
group LogLevelFilter Filter for groups.
line LogLevelFilter Filter for lines.
리턴 CK.Text

Parse() 공개 정적인 메소드

Parses the filter: it can be a predefined filter as ("Undefined", "Debug", "Verbose", etc.) or as {GroupLogLevelFilter,LineLogLevelFilter} pairs like "{None,None}", "{Error,Trace}".
public static Parse ( string filter ) : LogFilter
filter string Predefined filter as (Undefined, Debug, Verbose, etc.) or as {LineLogLevelFilter,GroupLogLevelFilter} like {None,None}, {Error,Trace}.
리턴 LogFilter

SetGroup() 공개 메소드

Returns a LogFilter with a given LogLevelFilter for the Group.
public SetGroup ( LogLevelFilter group ) : LogFilter
group LogLevelFilter Filter for the group.
리턴 LogFilter

SetLine() 공개 메소드

Returns a LogFilter with a given LogLevelFilter for the Line.
public SetLine ( LogLevelFilter line ) : LogFilter
line LogLevelFilter Filter for the line.
리턴 LogFilter

ToString() 공개 메소드

Overridden to show the group and the line level.
public ToString ( ) : string
리턴 string

TryParse() 공개 정적인 메소드

Tries to parse a LogFilter: it can be a predefined filter as ("Undefined", "Debug", "Verbose", etc.) or as {GroupLogLevelFilter,LineLogLevelFilter} pairs like "{None,None}", "{Error,Trace}".
public static TryParse ( string s, LogFilter &f ) : bool
s string Filter to parse.
f LogFilter Resulting filter.
리턴 bool

operator() 공개 정적인 메소드

Equality operator.
public static operator ( ) : bool
리턴 bool

프로퍼티 상세

Debug 정적으로 공개적으로 프로퍼티

Debug filter enables full LogLevelFilter.Trace for both Line and Group.
static public LogFilter,CK.Core Debug
리턴 LogFilter

Group 공개적으로 프로퍼티

The filter that applies to groups.
public LogLevelFilter Group
리턴 LogLevelFilter

Invalid 정적으로 공개적으로 프로퍼티

Invalid must be used as a special value. It is LogLevelFilter.Invalid for both Line and Group.
static public LogFilter,CK.Core Invalid
리턴 LogFilter

Line 공개적으로 프로퍼티

The filter that applies to log lines (Trace, Info, Warn, Error and Fatal).
public LogLevelFilter Line
리턴 LogLevelFilter

Monitor 정적으로 공개적으로 프로퍼티

While monitoring, only errors and warnings are captured, whereas all Groups appear to get the detailed structure of the activity.
static public LogFilter,CK.Core Monitor
리턴 LogFilter

Off 정적으로 공개적으로 프로퍼티

Off filter does not capture anything.
static public LogFilter,CK.Core Off
리턴 LogFilter

Release 정적으로 공개적으로 프로퍼티

Release filter captures only LogLevelFilter.Errors for both Line and Group.
static public LogFilter,CK.Core Release
리턴 LogFilter

Terse 정적으로 공개적으로 프로퍼티

Terse filter captures only errors for Line and limits Groups to LogLevelFilter.Info level.
static public LogFilter,CK.Core Terse
리턴 LogFilter

Undefined 정적으로 공개적으로 프로퍼티

Undefined filter is LogLevelFilter.None for both Line and Group. This is the same as using the default constructor for this structure (it is exposed here for clarity).
static public LogFilter,CK.Core Undefined
리턴 LogFilter

Verbose 정적으로 공개적으로 프로퍼티

Verbose LogLevelFilter.Trace all Groups but limits Line to LogLevelFilter.Info level.
static public LogFilter,CK.Core Verbose
리턴 LogFilter