C# Класс 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>
Наследование: ILoggerFactoryAdapter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetLogger ( Type type ) : ILog

Get a ILog instance by type

NoOpLoggerFactoryAdapter ( ) : System

Constructor

NoOpLoggerFactoryAdapter ( NameValueCollection properties ) : System

Constructor

Приватные методы

Метод Описание
ILoggerFactoryAdapter ( string key ) : ILog

Get a ILog instance by type key

NoOpLoggerFactoryAdapter ( System properties ) : System

Описание методов

GetLogger() публичный Метод

Get a ILog instance by type
public GetLogger ( Type type ) : ILog
type System.Type
Результат ILog

NoOpLoggerFactoryAdapter() публичный Метод

Constructor
public NoOpLoggerFactoryAdapter ( ) : System
Результат System

NoOpLoggerFactoryAdapter() публичный Метод

Constructor
public NoOpLoggerFactoryAdapter ( NameValueCollection properties ) : System
properties System.Collections.Specialized.NameValueCollection
Результат System