C# Class BalloonsPop.Common.Gadgets.Log4NetWrapper

A wrapper class over Log4Net.
Inheritance: ILogger
Afficher le fichier Open project: Baloons-Pop-4/Main

Méthodes publiques

Méthode Description
Error ( string message, Exception exception = null ) : void

Log a message with the log4net.Core.Level.Error level including the stack trace of the System.Exception passed as a parameter.

Fatal ( string message, Exception exception = null ) : void

Log a message with the log4net.Core.Level.Fatal level including the stack trace of the System.Exception passed as a parameter.

Info ( string message, Exception exception = null ) : void

Log a message with the log4net.Core.Level.Debug level including the stack trace of the System.Exception passed as a parameter.

Log4NetWrapper ( string filename ) : System

Initializes a new instance of the Log4NetWrapper class.

Warn ( string message, Exception exception = null ) : void

Log a message with the log4net.Core.Level.Warn level including the stack trace of the System.Exception passed as a parameter.

Method Details

Error() public méthode

Log a message with the log4net.Core.Level.Error level including the stack trace of the System.Exception passed as a parameter.
public Error ( string message, Exception exception = null ) : void
message string The message to log.
exception System.Exception The exception to log, including its stack trace.
Résultat void

Fatal() public méthode

Log a message with the log4net.Core.Level.Fatal level including the stack trace of the System.Exception passed as a parameter.
public Fatal ( string message, Exception exception = null ) : void
message string The message to log.
exception System.Exception The exception to log, including its stack trace.
Résultat void

Info() public méthode

Log a message with the log4net.Core.Level.Debug level including the stack trace of the System.Exception passed as a parameter.
public Info ( string message, Exception exception = null ) : void
message string The message to log.
exception System.Exception The exception to log, including its stack trace.
Résultat void

Log4NetWrapper() public méthode

Initializes a new instance of the Log4NetWrapper class.
public Log4NetWrapper ( string filename ) : System
filename string The name of the file using logger.
Résultat System

Warn() public méthode

Log a message with the log4net.Core.Level.Warn level including the stack trace of the System.Exception passed as a parameter.
public Warn ( string message, Exception exception = null ) : void
message string The message to log.
exception System.Exception The exception to log, including its stack trace.
Résultat void