C# Class Common.Logging.EntLib.EntLibLoggerFactoryAdapter

Adapts the EnterpriseLibrary 6.0 logging system to Common.Logging.
The following configuration property values may be configured: DefaultPriority (see DefaultPriority) ExceptionFormat (see ExceptionFormat)
Inheritance: Common.Logging.Factory.AbstractCachingLoggerFactoryAdapter
Mostrar archivo Open project: net-commons/common-logging Class Usage Examples

Public Methods

Method Description
EntLibLoggerFactoryAdapter ( ) : Common.Logging.Configuration

Initializes a new instance of the EntLibLoggerFactoryAdapter class.

EntLibLoggerFactoryAdapter ( NameValueCollection properties ) : Common.Logging.Configuration

Initializes a new instance of the EntLibLoggerFactoryAdapter class.

passed in values are not used, configuration is external to EntLib logging API

EntLibLoggerFactoryAdapter ( int defaultPriority, string exceptionFormat, Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter logWriter ) : Common.Logging.Configuration

Initializes a new instance of the EntLibLoggerFactoryAdapter class with the specified configuration parameters.

Protected Methods

Method Description
CreateLogger ( string name ) : ILog

Creates a new EntLibLogger instance.

CreateLogger ( string name, Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter logWriter, Common.Logging.EntLib.EntLibLoggerSettings settings ) : ILog

Creates a new EntLibLogger instance.

Private Methods

Method Description
GetWriter ( ) : Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter

Method Details

CreateLogger() protected method

Creates a new EntLibLogger instance.
protected CreateLogger ( string name ) : ILog
name string
return ILog

CreateLogger() protected method

Creates a new EntLibLogger instance.
protected CreateLogger ( string name, Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter logWriter, Common.Logging.EntLib.EntLibLoggerSettings settings ) : ILog
name string
logWriter Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter
settings Common.Logging.EntLib.EntLibLoggerSettings
return ILog

EntLibLoggerFactoryAdapter() public method

Initializes a new instance of the EntLibLoggerFactoryAdapter class.
public EntLibLoggerFactoryAdapter ( ) : Common.Logging.Configuration
return Common.Logging.Configuration

EntLibLoggerFactoryAdapter() public method

Initializes a new instance of the EntLibLoggerFactoryAdapter class.
passed in values are not used, configuration is external to EntLib logging API
public EntLibLoggerFactoryAdapter ( NameValueCollection properties ) : Common.Logging.Configuration
properties NameValueCollection The properties.
return Common.Logging.Configuration

EntLibLoggerFactoryAdapter() public method

Initializes a new instance of the EntLibLoggerFactoryAdapter class with the specified configuration parameters.
public EntLibLoggerFactoryAdapter ( int defaultPriority, string exceptionFormat, Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter logWriter ) : Common.Logging.Configuration
defaultPriority int defaults to
exceptionFormat string defaults to
logWriter Microsoft.Practices.EnterpriseLibrary.Logging.LogWriter a instance to use
return Common.Logging.Configuration