Common Logging 2.0 API Reference

NLogLoggerFactoryAdapter Class

Concrete subclass of ILoggerFactoryAdapter specific to NLog 1.0.0.505.

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

System.Object
   AbstractCachingLoggerFactoryAdapter
      NLogLoggerFactoryAdapter

[Visual Basic]
Public Class NLogLoggerFactoryAdapter
    Inherits AbstractCachingLoggerFactoryAdapter
[C#]
public class NLogLoggerFactoryAdapter : 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.NLog.NLogLoggerFactoryAdapter, Common.Logging.NLog">
        <arg key="configType" value="FILE" />
        <arg key="configFile" value="~/nlog.config" />
      </factoryAdapter>
    </logging>
  </common>
</configuration>

Requirements

Namespace: Common.Logging.NLog

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

See Also

NLogLoggerFactoryAdapter Members | Common.Logging.NLog Namespace