C# Class SharpLog.Desktop.ColoredConsoleLogger

Inheritance: SynchronousFormattableLogger
显示文件 Open project: prasannavl/SharpLog

Public Methods

Method Description
Format ( string text, LogLevel level, string callerName ) : string
SetGlobalTextColor ( ConsoleColor color ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void
Execute ( LogLevel level, string text, string callerName ) : void

Private Methods

Method Description
GetColor ( LogLevel level ) : ConsoleColor

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Execute() protected method

protected Execute ( LogLevel level, string text, string callerName ) : void
level LogLevel
text string
callerName string
return void

Format() public method

public Format ( string text, LogLevel level, string callerName ) : string
text string
level LogLevel
callerName string
return string

SetGlobalTextColor() public method

public SetGlobalTextColor ( ConsoleColor color ) : void
color ConsoleColor
return void