C# Class Ivony.Logs.LogScope

定义日志范畴对象
Inheritance: IDisposable
显示文件 Open project: Ivony/LogUtility Class Usage Examples

Public Methods

Method Description
EnterScope ( LogScope scope ) : LogScope

进入一个日志范畴

EnterScope ( string name ) : LogScope

创建并进入一个日志范畴

Leave ( ) : void

离开当前范畴

LeaveScope ( LogScope scope ) : LogScope

离开指定的范畴,若指定范畴在当前上下文不存在,则不进行任何操作,并返回 null 。

Protected Methods

Method Description
LogScope ( string name ) : System

创建 LogScope 实例

Private Methods

Method Description
IDisposable ( ) : void
LogScope ( ) : System

Method Details

EnterScope() public static method

进入一个日志范畴
public static EnterScope ( LogScope scope ) : LogScope
scope LogScope 要进入的日志范畴
return LogScope

EnterScope() public static method

创建并进入一个日志范畴
public static EnterScope ( string name ) : LogScope
name string 范畴名称
return LogScope

Leave() public method

离开当前范畴
public Leave ( ) : void
return void

LeaveScope() public static method

离开指定的范畴,若指定范畴在当前上下文不存在,则不进行任何操作,并返回 null 。
public static LeaveScope ( LogScope scope ) : LogScope
scope LogScope 要离开的范畴
return LogScope

LogScope() protected method

创建 LogScope 实例
protected LogScope ( string name ) : System
name string 范畴名称
return System