C# 클래스 Habanero.Base.Logging.ConsoleLoggerFactory

상속: IHabaneroLoggerFactory
파일 보기 프로젝트 열기: Chillisoft/habanero 1 사용 예제들

공개 메소드들

메소드 설명
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