C# Класс BalloonsPop.Common.Gadgets.Log4NetWrapper

A wrapper class over Log4Net.
Наследование: ILogger
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

Error() публичный Метод

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.
Результат void

Fatal() публичный Метод

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.
Результат void

Info() публичный Метод

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.
Результат void

Log4NetWrapper() публичный Метод

Initializes a new instance of the Log4NetWrapper class.
public Log4NetWrapper ( string filename ) : System
filename string The name of the file using logger.
Результат System

Warn() публичный Метод

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.
Результат void