C# Class Castle.Facilities.Logging.LoggingFacility

A facility for logging support.
TODO: Document its inner working and configuration scheme
Inheritance: Castle.MicroKernel.Facilities.AbstractFacility
Mostra file Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
LoggingFacility ( ) : System

Initializes a new instance of the LoggingFacility class.

LoggingFacility ( LoggerImplementation loggingApi ) : System

Initializes a new instance of the LoggingFacility class.

LoggingFacility ( LoggerImplementation loggingApi, string configFile ) : System

Initializes a new instance of the LoggingFacility class.

LoggingFacility ( LoggerImplementation loggingApi, string customLoggerFactory, string configFile ) : System

Initializes a new instance of the LoggingFacility class.

LoggingFacility ( string customLoggerFactory, string configFile ) : System

Initializes a new instance of the LoggingFacility class using a custom LoggerImplementation

Protected Methods

Method Description
Init ( ) : void

Private Methods

Method Description
CreateProperLoggerFactory ( string customType, string configFile ) : void
GetLoggingFactoryArguments ( string configFile, Type loggerFactoryType ) : object[]
GetLoggingFactoryType ( string customType ) : Type
ReadConfigurationAndCreateLoggerFactory ( ) : void
RegisterDefaultILogger ( ) : void
RegisterLoggerFactory ( ) : void
RegisterSubResolver ( ) : void
SetUpTypeConverter ( ) : void

Method Details

Init() protected method

protected Init ( ) : void
return void

LoggingFacility() public method

Initializes a new instance of the LoggingFacility class.
public LoggingFacility ( ) : System
return System

LoggingFacility() public method

Initializes a new instance of the LoggingFacility class.
public LoggingFacility ( LoggerImplementation loggingApi ) : System
loggingApi LoggerImplementation /// The LoggerImplementation that should be used ///
return System

LoggingFacility() public method

Initializes a new instance of the LoggingFacility class.
public LoggingFacility ( LoggerImplementation loggingApi, string configFile ) : System
loggingApi LoggerImplementation /// The LoggerImplementation that should be used ///
configFile string /// The configuration file that should be used by the chosen LoggerImplementation ///
return System

LoggingFacility() public method

Initializes a new instance of the LoggingFacility class.
public LoggingFacility ( LoggerImplementation loggingApi, string customLoggerFactory, string configFile ) : System
loggingApi LoggerImplementation /// The LoggerImplementation that should be used ///
customLoggerFactory string /// The type name of the type of the custom logger factory. (only used when loggingApi is set to LoggerImplementation.Custom) ///
configFile string /// The configuration file that should be used by the chosen LoggerImplementation ///
return System

LoggingFacility() public method

Initializes a new instance of the LoggingFacility class using a custom LoggerImplementation
public LoggingFacility ( string customLoggerFactory, string configFile ) : System
customLoggerFactory string /// The type name of the type of the custom logger factory. ///
configFile string /// The configuration file that should be used by the chosen LoggerImplementation ///
return System