C# Class SharpLog.Desktop.ConsoleLogger

Inheritance: SynchronousFormattableLogger
Show file Open project: prasannavl/SharpLog

Public Methods

Method Description
ConsoleLogger ( ) : System
ConsoleLogger ( bool isSynchronized ) : System
Format ( string text, LogLevel level, string callerName ) : string
SetSynchronizationMode ( bool isSynchronized ) : void

Protected Methods

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

Method Details

ConsoleLogger() public method

public ConsoleLogger ( ) : System
return System

ConsoleLogger() public method

public ConsoleLogger ( bool isSynchronized ) : System
isSynchronized bool
return System

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

SetSynchronizationMode() public method

public SetSynchronizationMode ( bool isSynchronized ) : void
isSynchronized bool
return void

WriteToConsole() protected method

protected WriteToConsole ( string text ) : void
text string
return void

WriteToConsoleSynchronized() protected method

protected WriteToConsoleSynchronized ( string text ) : void
text string
return void