C# Class Common.Logging.NLog.NLogLoggerFactoryAdapter

Concrete subclass of ILoggerFactoryAdapter specific to NLog.

Note, that you cannot use NLog in medium trust environments unless you use an unsigned build

The following configuration property values may be configured: configType: INLINE|FILE configFile: NLog XML configuration file path in case of FILE The configType values have the following implications: FILE: calls NLog.LogManager.Configuration = new NLog.Config.XmlLoggingConfiguration(configFile). <any other value>: expects NLog to be configured externally
Inheritance: Common.Logging.Factory.AbstractCachingLoggerFactoryAdapter
Exibir arquivo Open project: net-commons/common-logging Class Usage Examples

Public Methods

Method Description
NLogLoggerFactoryAdapter ( NameValueCollection properties ) : System

Constructor

Protected Methods

Method Description
CreateLogger ( string name ) : ILog

Get a ILog instance by type name

Private Methods

Method Description
NLogLoggerFactoryAdapter ( System properties ) : System

Method Details

CreateLogger() protected method

Get a ILog instance by type name
protected CreateLogger ( string name ) : ILog
name string
return ILog

NLogLoggerFactoryAdapter() public method

Constructor
public NLogLoggerFactoryAdapter ( NameValueCollection properties ) : System
properties NameValueCollection
return System