C# Class Habanero.Base.Logging.ConsoleLoggerFactory

Inheritance: IHabaneroLoggerFactory
Mostra file Open project: Chillisoft/habanero Class Usage Examples

Public Methods

Method Description
ConsoleLoggerFactory ( ) : System

Constructor, by default only Warn, Exception and Fatal levels are enabled.

GetLogger ( Type type ) : IHabaneroLogger

Returns a logger set up with the context of the type given

GetLogger ( string contextName ) : IHabaneroLogger

Get the logger for the given context.

SetDefaultIsLogging ( LogCategory logCategory, bool isLogging ) : void

Sets up the default isLogging value for the LogCategory.

Method Details

ConsoleLoggerFactory() public method

Constructor, by default only Warn, Exception and Fatal levels are enabled.
public ConsoleLoggerFactory ( ) : System
return System

GetLogger() public method

Returns a logger set up with the context of the type given
public GetLogger ( Type type ) : IHabaneroLogger
type System.Type The type the logger is for
return IHabaneroLogger

GetLogger() public method

Get the logger for the given context.
public GetLogger ( string contextName ) : IHabaneroLogger
contextName string The context, to allow for various lgger names
return IHabaneroLogger

SetDefaultIsLogging() public method

Sets up the default isLogging value for the LogCategory.
public SetDefaultIsLogging ( LogCategory logCategory, bool isLogging ) : void
logCategory LogCategory The to configure
isLogging bool Whether to log that LogCategory by default
return void