C# Class Habanero.Base.Logging.ConsoleLoggerFactory

Inheritance: IHabaneroLoggerFactory
Afficher le fichier Open project: Chillisoft/habanero Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

GetLogger() public méthode

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
Résultat IHabaneroLogger

GetLogger() public méthode

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

SetDefaultIsLogging() public méthode

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
Résultat void