C# 클래스 Ivony.Logs.LogFilter

定义日志筛选器的抽象基类
파일 보기 프로젝트 열기: Ivony/LogUtility 1 사용 예제들

공개 메소드들

메소드 설명
BySource ( string logSource ) : LogFilter

获取按照日志记录源的名称筛选日志

Writable ( LogEntry entry ) : bool

确定指定的日志条目是否需要记录

operator ( ) : LogFilter

从两个日志筛选器中创建一个新的日志筛选器,需要满足所有日志筛选器的条件才记录日志

비공개 메소드들

메소드 설명
LogFilter ( ) : System

메소드 상세

BySource() 공개 정적인 메소드

获取按照日志记录源的名称筛选日志
public static BySource ( string logSource ) : LogFilter
logSource string 日志记录源名称
리턴 LogFilter

Writable() 공개 추상적인 메소드

确定指定的日志条目是否需要记录
public abstract Writable ( LogEntry entry ) : bool
entry LogEntry 日志条目
리턴 bool

operator() 공개 정적인 메소드

从两个日志筛选器中创建一个新的日志筛选器,需要满足所有日志筛选器的条件才记录日志
public static operator ( ) : LogFilter
리턴 LogFilter