C# Class Crosschat.Server.Infrastructure.Logging.ConsoleLogger

TODO: replace with NLog
Inheritance: ILogger
Show file Open project: EgorBo/CrossChat-Xamarin.Forms

Public Methods

Method Description
ConsoleLogger ( string typeName ) : System
Debug ( string format ) : void
Error ( string format ) : void
Exception ( Exception exc ) : void
Exception ( Exception exc, string captionFormat ) : void
Info ( string format ) : void
Trace ( string format ) : void
Warning ( string format ) : void

Private Methods

Method Description
GetExceptionDescription ( Exception exc ) : string
Write ( ConsoleColor color, string format ) : void

Method Details

ConsoleLogger() public method

public ConsoleLogger ( string typeName ) : System
typeName string
return System

Debug() public method

public Debug ( string format ) : void
format string
return void

Error() public method

public Error ( string format ) : void
format string
return void

Exception() public method

public Exception ( Exception exc ) : void
exc System.Exception
return void

Exception() public method

public Exception ( Exception exc, string captionFormat ) : void
exc System.Exception
captionFormat string
return void

Info() public method

public Info ( string format ) : void
format string
return void

Trace() public method

public Trace ( string format ) : void
format string
return void

Warning() public method

public Warning ( string format ) : void
format string
return void