C# Class Logging.Log4NetLogger

Inheritance: ILogger
Exibir arquivo Open project: tah91/eworkyWebSite Class Usage Examples

Public Methods

Method Description
Debug ( string message ) : void
Error ( string message ) : void
Error ( string message, Exception e ) : void
Info ( string message ) : void
Log4NetLogger ( ) : System
Warn ( string message ) : void

Private Methods

Method Description
AddDebugInfo ( string message ) : string

This method is necessary because the default implementation of log4net gets stack info from the calling method. The calling method will always be our wrapper methods above. This code goes down the stack trace one step further and determines the correct calling info. Provide specific information about the logged message.

Method Details

Debug() public method

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

Error() public method

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

Error() public method

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

Info() public method

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

Log4NetLogger() public method

public Log4NetLogger ( ) : System
return System

Warn() public method

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