Common Logging 2.0 API Reference

Log4NetLoggerFactoryAdapter Class

Concrete subclass of ILoggerFactoryAdapter specific to log4net 1.2.10.

For a list of all members of this type, see Log4NetLoggerFactoryAdapter Members .

System.Object
   AbstractCachingLoggerFactoryAdapter
      Log4NetLoggerFactoryAdapter

[Visual Basic]
Public Class Log4NetLoggerFactoryAdapter
    Inherits AbstractCachingLoggerFactoryAdapter
[C#]
public class Log4NetLoggerFactoryAdapter : AbstractCachingLoggerFactoryAdapter

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The following configuration property values may be configured:

The configType values have the following implications:

Example

The following snippet shows how to configure EntLib logging for Common.Logging:

<configuration>
  <configSections>
      <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
  </configSections>
  <common>
    <logging>
      <factoryAdapter type="Common.Logging.Log4Net.Log4NetLoggerFactoryAdapter, Common.Logging.Log4Net">
        <arg key="configType" value="FILE" />
        <arg key="configFile" value="~/log4net.config" />
      </factoryAdapter>
    </logging>
  </common>
</configuration>

Requirements

Namespace: Common.Logging.Log4Net

Assembly: Common.Logging.Log4Net (in Common.Logging.Log4Net.dll)

See Also

Log4NetLoggerFactoryAdapter Members | Common.Logging.Log4Net Namespace