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
Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.
The following configuration property values may be configured:
configType
: INLINE|FILE
configFile
: NLog XML configuration file path in case of FILENLog.LogManager.Configuration = new NLog.Config.XmlLoggingConfiguration(configFile)
.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>
Namespace: Common.Logging.NLog
Assembly: Common.Logging.NLog (in Common.Logging.NLog.dll)
NLogLoggerFactoryAdapter Members | Common.Logging.NLog Namespace