C# 클래스 Hawkeye.Logging.log4net.Log4NetServiceFactory

This class allows for the creation of a trace service instance based on the log4net framework.
상속: ILogServiceFactory, ILogServiceAppendable
파일 보기 프로젝트 열기: odalet/Hawkeye2 1 사용 예제들

Private Properties

프로퍼티 타입 설명
ConfigureLog4Net void
CreateService ILogService
GetEntryAssembly System.Reflection.Assembly
GetRootLogger global::log4net.Core.ILogger
InitializeApplicationName string

공개 메소드들

메소드 설명
AppendLogService ( ILogService logService, object>.IDictionary additionalData = null ) : ILogLevelThresholdSelector

Appends the specified log service to a root log service (the current instance).

GetLogger ( Type type, object>.IDictionary additionalData = null ) : ILogService

Obtains an instance of the logger service for the specified type and optional additional data.

Log4NetServiceFactory ( ) : System

Initializes a new instance of the Log4NetServiceFactory class.

Log4NetServiceFactory ( string configFile ) : System

Initializes a new instance of the Log4NetServiceFactory class.

Shutdown ( ) : void

Closes all the resources held by the various loggers.

비공개 메소드들

메소드 설명
ConfigureLog4Net ( string filename ) : void
CreateService ( Type type ) : ILogService

Creates the logging service and return the newly created instance.

The configuration file used by log4net will be the application's configuration file (web.config ou app.exe.config) which will have to contain a <log4net> section.

GetEntryAssembly ( ) : Assembly
GetRootLogger ( ) : global::log4net.Core.ILogger
InitializeApplicationName ( ) : string

메소드 상세

AppendLogService() 공개 메소드

Appends the specified log service to a root log service (the current instance).
public AppendLogService ( ILogService logService, object>.IDictionary additionalData = null ) : ILogLevelThresholdSelector
logService ILogService The log service.
additionalData object>.IDictionary The optional additional data.
리턴 ILogLevelThresholdSelector

GetLogger() 공개 메소드

Obtains an instance of the logger service for the specified type and optional additional data.
public GetLogger ( Type type, object>.IDictionary additionalData = null ) : ILogService
type System.Type The type.
additionalData object>.IDictionary The additional data.
리턴 ILogService

Log4NetServiceFactory() 공개 메소드

Initializes a new instance of the Log4NetServiceFactory class.
public Log4NetServiceFactory ( ) : System
리턴 System

Log4NetServiceFactory() 공개 메소드

Initializes a new instance of the Log4NetServiceFactory class.
public Log4NetServiceFactory ( string configFile ) : System
configFile string The path to a log4net configuration file (or empty to use app.config).
리턴 System

Shutdown() 공개 메소드

Closes all the resources held by the various loggers.
public Shutdown ( ) : void
리턴 void