C# Class XLog.LogConfig

显示文件 Open project: Belorus/XLog Class Usage Examples

Public Properties

Property Type Description
CategoryRegistrar XLog.Categories.LogCategoryRegistrar
Formatter IFormatter
IsEnabled bool

Public Methods

Method Description
AddTarget ( LogLevel minLevel, LogLevel maxLevel, Target target ) : void
AddTarget ( LogLevel logLevel, Target target ) : void
Flush ( ) : void
GetLogs ( ) : string
IsLevelEnabled ( int logLevel ) : bool
LogConfig ( IFormatter formatter, LogCategoryRegistrar categoryRegistry = null ) : System.Collections.Generic

Method Details

AddTarget() public method

public AddTarget ( LogLevel minLevel, LogLevel maxLevel, Target target ) : void
minLevel LogLevel
maxLevel LogLevel
target Target
return void

AddTarget() public method

public AddTarget ( LogLevel logLevel, Target target ) : void
logLevel LogLevel
target Target
return void

Flush() public method

public Flush ( ) : void
return void

GetLogs() public method

public GetLogs ( ) : string
return string

IsLevelEnabled() public method

public IsLevelEnabled ( int logLevel ) : bool
logLevel int
return bool

LogConfig() public method

public LogConfig ( IFormatter formatter, LogCategoryRegistrar categoryRegistry = null ) : System.Collections.Generic
formatter IFormatter
categoryRegistry XLog.Categories.LogCategoryRegistrar
return System.Collections.Generic

Property Details

CategoryRegistrar public_oe property

public LogCategoryRegistrar,XLog.Categories CategoryRegistrar
return XLog.Categories.LogCategoryRegistrar

Formatter public_oe property

public IFormatter Formatter
return IFormatter

IsEnabled public_oe property

public bool IsEnabled
return bool