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

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

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

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

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

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

Constructor, by default only Warn, Exception and Fatal levels are enabled.
public ConsoleLoggerFactory ( ) : System
Результат System

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

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

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

Get the logger for the given context.
public GetLogger ( string contextName ) : IHabaneroLogger
contextName string The context, to allow for various lgger names
Результат IHabaneroLogger

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

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