C# Класс Habanero.Base.Logging.Log4NetLoggerFactory

Logger factory for creating a Log4NetLogger
Наследование: IHabaneroLoggerFactory
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetLogger ( Type contextType ) : IHabaneroLogger

Creates the Appropriate IHabaneroLogger based on the LoggerFactory you have implemented. See IHabaneroLoggerFactory.GetLogger(string) form more details

GetLogger ( string contextName ) : IHabaneroLogger

Creates the Appropriate IHabaneroLogger based on the LoggerFactory you have implemented. By Default Habanero uses the Log4NetLoggerFactory. You can change the logger factor by changing your the BootStrapper code when Your Application starts up or by creating your own HabaneroApp and overriding the HabaneroApp.SetupLogging or by calling the following code in your app startup. GlobalRegistry.LoggerFactory = new Log4NetLoggerFactory();

Log4NetLoggerFactory ( ) : System

Constructs the Log4net factory

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

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

Creates the Appropriate IHabaneroLogger based on the LoggerFactory you have implemented. See IHabaneroLoggerFactory.GetLogger(string) form more details
public GetLogger ( Type contextType ) : IHabaneroLogger
contextType System.Type The Type of BO this log is for
Результат IHabaneroLogger

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

Creates the Appropriate IHabaneroLogger based on the LoggerFactory you have implemented. By Default Habanero uses the Log4NetLoggerFactory. You can change the logger factor by changing your the BootStrapper code when Your Application starts up or by creating your own HabaneroApp and overriding the HabaneroApp.SetupLogging or by calling the following code in your app startup. GlobalRegistry.LoggerFactory = new Log4NetLoggerFactory();
public GetLogger ( string contextName ) : IHabaneroLogger
contextName string
Результат IHabaneroLogger

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

Constructs the Log4net factory
public Log4NetLoggerFactory ( ) : System
Результат System