C# 클래스 IrcShark.ChannelFilter

The ChannelFilter class is used by LogHandlerSetting to define a channel specific filter.
파일 보기 프로젝트 열기: hapm/IrcShark

공개 메소드들

메소드 설명
ApplysTo ( LogMessage msg ) : bool

Checks if the given LogMessage is filtered by this channel filter setting or not.

ParseFilter ( string filter ) : void

Parses a filter string and set the new values.

The string can contain the following characters: 'd' - Debug messages 'i' - Information messages 'w' - Warning messages 'e' - Error messages

If a character is in the string, the messages of the given type will pass the filter, else it will be dismissed.

ResetDefaults ( ) : void

Resets the filter to the defaults used by the associated LogHandlerSetting.

비공개 메소드들

메소드 설명
ChannelFilter ( string channel, LogHandlerSetting defaults ) : System

Initializes a new instance of the ChannelFilter class.

The filter is copied from the defaults.

ChannelFilter ( string channel, LogHandlerSetting defaults, string filter ) : System

Initializes a new instance of the ChannelFilter class.

CopyDefaults ( ) : void

Copys the default values from the associated settings.

메소드 상세

ApplysTo() 공개 메소드

Checks if the given LogMessage is filtered by this channel filter setting or not.
public ApplysTo ( LogMessage msg ) : bool
msg LogMessage The message to check.
리턴 bool

ParseFilter() 공개 메소드

Parses a filter string and set the new values.

The string can contain the following characters: 'd' - Debug messages 'i' - Information messages 'w' - Warning messages 'e' - Error messages

If a character is in the string, the messages of the given type will pass the filter, else it will be dismissed.

public ParseFilter ( string filter ) : void
filter string The filter string.
리턴 void

ResetDefaults() 공개 메소드

Resets the filter to the defaults used by the associated LogHandlerSetting.
public ResetDefaults ( ) : void
리턴 void