C# Class Ivony.Logs.LogFilter

定义日志筛选器的抽象基类
显示文件 Open project: Ivony/LogUtility Class Usage Examples

Public Methods

Method Description
BySource ( string logSource ) : LogFilter

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

Writable ( LogEntry entry ) : bool

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

operator ( ) : LogFilter

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

Private Methods

Method Description
LogFilter ( ) : System

Method Details

BySource() public static method

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

Writable() public abstract method

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

operator() public static method

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