C# Class Logging.Log4NetLogger

Inheritance: ILogger
Afficher le fichier Open project: tah91/eworkyWebSite Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Debug ( string message ) : void
message string
Résultat void

Error() public méthode

public Error ( string message ) : void
message string
Résultat void

Error() public méthode

public Error ( string message, Exception e ) : void
message string
e System.Exception
Résultat void

Info() public méthode

public Info ( string message ) : void
message string
Résultat void

Log4NetLogger() public méthode

public Log4NetLogger ( ) : System
Résultat System

Warn() public méthode

public Warn ( string message ) : void
message string
Résultat void