C# Class NDomain.Logging.TraceLogger

ILogger implementation that uses the Trace to write logs to all configured trace listeners
Inheritance: ILogger
Show file Open project: mfelicio/NDomain

Public Methods

Method Description
Debug ( string message ) : void
Error ( Exception exception, string message ) : void
Error ( string message ) : void
Fatal ( Exception exception, string message ) : void
Fatal ( string message ) : void
Info ( string message ) : void
TraceLogger ( string name ) : System
Warn ( Exception exception, string message ) : void
Warn ( string message ) : void

Private Methods

Method Description
BuildErrorMessage ( Exception exception, string message ) : string
BuildMessage ( string message ) : string

Method Details

Debug() public method

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

Error() public method

public Error ( Exception exception, string message ) : void
exception System.Exception
message string
return void

Error() public method

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

Fatal() public method

public Fatal ( Exception exception, string message ) : void
exception System.Exception
message string
return void

Fatal() public method

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

Info() public method

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

TraceLogger() public method

public TraceLogger ( string name ) : System
name string
return System

Warn() public method

public Warn ( Exception exception, string message ) : void
exception System.Exception
message string
return void

Warn() public method

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