C# Class Habanero.Base.Logging.Log4NetLoggerFactory

Logger factory for creating a Log4NetLogger
Inheritance: IHabaneroLoggerFactory
Datei anzeigen Open project: Chillisoft/habanero Class Usage Examples

Public Methods

Method Description
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

Method Details

GetLogger() public method

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
return IHabaneroLogger

GetLogger() public method

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
return IHabaneroLogger

Log4NetLoggerFactory() public method

Constructs the Log4net factory
public Log4NetLoggerFactory ( ) : System
return System