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
Afficher le fichier Open project: SaladLab/Common.Logging.Unity3D Class Usage Examples

Méthodes publiques

Méthode Description
GetLogger ( Type type ) : ILog

Get a ILog instance by type

NoOpLoggerFactoryAdapter ( ) : System

Constructor

NoOpLoggerFactoryAdapter ( NameValueCollection properties ) : System

Constructor

Private Methods

Méthode Description
ILoggerFactoryAdapter ( string key ) : ILog

Get a ILog instance by type key

NoOpLoggerFactoryAdapter ( System properties ) : System

Method Details

GetLogger() public méthode

Get a ILog instance by type
public GetLogger ( Type type ) : ILog
type System.Type
Résultat ILog

NoOpLoggerFactoryAdapter() public méthode

Constructor
public NoOpLoggerFactoryAdapter ( ) : System
Résultat System

NoOpLoggerFactoryAdapter() public méthode

Constructor
public NoOpLoggerFactoryAdapter ( NameValueCollection properties ) : System
properties System.Collections.Specialized.NameValueCollection
Résultat System