Concrete subclass of ILoggerFactoryAdapter specific to log4net 1.2.9.
For a list of all members of this type, see Log4NetLoggerFactoryAdapter Members .
System.Object
AbstractCachingLoggerFactoryAdapter
Log4NetLoggerFactoryAdapter
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|FILE-WATCH|EXTERNAL
configFile
: log4net configuration file path in case of FILE or FILE-WATCHXmlConfigurator.Configure()
XmlConfigurator.Configure(System.IO.FileInfo)
using configFile
.XmlConfigurator.ConfigureAndWatch(System.IO.FileInfo)
using configFile
.BasicConfigurator.Configure()
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.Log4Net129"> <arg key="configType" value="FILE" /> <arg key="configFile" value="~/log4net.config" /> </factoryAdapter> </logging> </common> </configuration>
Namespace: Common.Logging.Log4Net
Assembly: Common.Logging.Log4Net129 (in Common.Logging.Log4Net129.dll)
Log4NetLoggerFactoryAdapter Members | Common.Logging.Log4Net Namespace