C# Class Common.Logging.Simple.NoOpLoggerFactoryAdapter

Factory for creating ILog instances that silently ignores logging requests.
This logger adapter is the default used by Common.Logging if unconfigured. Using this logger adapter is the most efficient way to suppress any logging output. Below is an example how to configure this adapter: <configuration> <configSections> <sectionGroup name="common"> <section name="logging" type="Common.Logging.ConfigurationSectionHandler, Common.Logging" requirePermission="false" /> </sectionGroup> </configSections> <common> <logging> <factoryAdapter type="Common.Logging.Simple.NoOpLoggerFactoryAdapter, Common.Logging"> <arg key="level" value="ALL" /> </factoryAdapter> </logging> </common> </configuration>
Inheritance: ILoggerFactoryAdapter
Show file Open project: SaladLab/Common.Logging.Unity3D Class Usage Examples

Public Methods

Method Description
GetLogger ( Type type ) : ILog

Get a ILog instance by type

NoOpLoggerFactoryAdapter ( ) : System

Constructor

NoOpLoggerFactoryAdapter ( NameValueCollection properties ) : System

Constructor

Private Methods

Method Description
ILoggerFactoryAdapter ( string key ) : ILog

Get a ILog instance by type key

NoOpLoggerFactoryAdapter ( System properties ) : System

Method Details

GetLogger() public method

Get a ILog instance by type
public GetLogger ( Type type ) : ILog
type System.Type
return ILog

NoOpLoggerFactoryAdapter() public method

Constructor
public NoOpLoggerFactoryAdapter ( ) : System
return System

NoOpLoggerFactoryAdapter() public method

Constructor
public NoOpLoggerFactoryAdapter ( NameValueCollection properties ) : System
properties System.Collections.Specialized.NameValueCollection
return System