C# Class Infrastructure.ConsoleWindowLogger

An logger implementation which prints our loggs to the console window.
Inheritance: ILog
Show file Open project: AdrianFreemantle/DDD

Public Methods

Method Description
ConsoleWindowLogger ( Type typeToLog ) : System
Debug ( string message ) : void
Error ( string message ) : void
Fatal ( string message ) : void
FormatMessage ( string message, Type typeToLog ) : string
Info ( string message ) : void
Verbose ( string message ) : void
Warn ( string message ) : void

Private Methods

Method Description
Log ( ConsoleColor color, string message ) : void

Method Details

ConsoleWindowLogger() public method

public ConsoleWindowLogger ( Type typeToLog ) : System
typeToLog System.Type
return System

Debug() public method

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

Error() public method

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

Fatal() public method

public Fatal ( string message ) : void
message string
return void

FormatMessage() public static method

public static FormatMessage ( string message, Type typeToLog ) : string
message string
typeToLog System.Type
return string

Info() public method

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

Verbose() public method

public Verbose ( string message ) : void
message string
return void

Warn() public method

public Warn ( string message ) : void
message string
return void