Common Logging 2.0 API Reference

EntLibLoggerFactoryAdapter Class

Adapts the EnterpriseLibrary 3.1 logging system to Common.Logging.

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

System.Object
   AbstractCachingLoggerFactoryAdapter
      EntLibLoggerFactoryAdapter

[Visual Basic]
Public Class EntLibLoggerFactoryAdapter
    Inherits AbstractCachingLoggerFactoryAdapter
[C#]
public class EntLibLoggerFactoryAdapter : 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:

Example

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

<configuration>
  <configSections>
      <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" />
      <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </configSections>
  <common>
    <logging>
      <factoryAdapter type="Common.Logging.EntLib.EntLibLoggerFactoryAdapter, Common.Logging.EntLib">
        <arg key="DefaultPriority" value="-1" />
      </factoryAdapter>
    </logging>
  </common>
  <loggingConfiguration name="Logging Application Block"
<-- configure enterprise logging application block here -->
...
  </loggingConfiguration>
</configuration>

Requirements

Namespace: Common.Logging.EntLib

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

See Also

EntLibLoggerFactoryAdapter Members | Common.Logging.EntLib Namespace