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

A logger that just logs to the console
상속: IHabaneroLogger
파일 보기 프로젝트 열기: Chillisoft/habanero

공개 메소드들

메소드 설명
ConsoleLogger ( string contextName, bool>.IDictionary isLogging ) : System

Constructor

IsLogging ( LogCategory logCategory ) : bool

Checks the logger to see if it has been enabled to log messages of the specified LogCategory type.

Log ( Exception exception ) : void

Creates a single log entry for with the appropriate exception message. Although this is an interface and you can implement it as you wish for Log4NetLogger We log an entry with LogCategory.Exception unless the exception inherits from UserException in which case we log this with the LogCategory.Info

Log ( string message, Exception exception ) : void

Creates a single log entry for with the appropriate exception message and message. Although this is an interface and you can implement it as you wish for Log4NetLogger We log an entry with LogCategory.Exception unless the exception inherits from UserException in which case we log this with the LogCategory.Info

Log ( string message, Exception exception, LogCategory logCategory ) : void

Creates a single log entry for with appropriate exception message and message with the specified LogCategory.

Log ( string message, LogCategory logCategory ) : void

Creates a single log entry for with the message with the appropriate message

SetIsLogging ( LogCategory logCategory, bool isLogging ) : void

Set up the LogCategory for logging

메소드 상세

ConsoleLogger() 공개 메소드

Constructor
public ConsoleLogger ( string contextName, bool>.IDictionary isLogging ) : System
contextName string The name of the logger
isLogging bool>.IDictionary Whether each should be logged
리턴 System

IsLogging() 공개 메소드

Checks the logger to see if it has been enabled to log messages of the specified LogCategory type.
public IsLogging ( LogCategory logCategory ) : bool
logCategory LogCategory The for which to check if logging is enabled or not.
리턴 bool

Log() 공개 메소드

Creates a single log entry for with the appropriate exception message. Although this is an interface and you can implement it as you wish for Log4NetLogger We log an entry with LogCategory.Exception unless the exception inherits from UserException in which case we log this with the LogCategory.Info
public Log ( Exception exception ) : void
exception System.Exception
리턴 void

Log() 공개 메소드

Creates a single log entry for with the appropriate exception message and message. Although this is an interface and you can implement it as you wish for Log4NetLogger We log an entry with LogCategory.Exception unless the exception inherits from UserException in which case we log this with the LogCategory.Info
public Log ( string message, Exception exception ) : void
message string The additional log message to be logged with the exception
exception System.Exception
리턴 void

Log() 공개 메소드

Creates a single log entry for with appropriate exception message and message with the specified LogCategory.
public Log ( string message, Exception exception, LogCategory logCategory ) : void
message string The additional log message to be logged with the exception
exception System.Exception The exception being logged
logCategory LogCategory The specified LogCategory
리턴 void

Log() 공개 메소드

Creates a single log entry for with the message with the appropriate message
public Log ( string message, LogCategory logCategory ) : void
message string
logCategory LogCategory
리턴 void

SetIsLogging() 공개 메소드

Set up the LogCategory for logging
public SetIsLogging ( LogCategory logCategory, bool isLogging ) : void
logCategory LogCategory
isLogging bool
리턴 void