C# Класс Castle.Services.Logging.NLogIntegration.ExtendedNLogFactory

Implementation of IExtendedLoggerFactory for NLog.
Наследование: Castle.Core.Logging.AbstractExtendedLoggerFactory
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Create ( string name ) : IExtendedLogger

Creates a new extended logger with the specified name.

Create ( string name, LoggerLevel level ) : IExtendedLogger

Not implemented, NLog logger levels cannot be set at runtime.

ExtendedNLogFactory ( ) : System

Initializes a new instance of the ExtendedNLogFactory class. Configures NLog with a config file name 'nlog.config' Create(string)

ExtendedNLogFactory ( string configFile ) : System

Initializes a new instance of the ExtendedNLogFactory class with the configfile specified by configFile

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

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

Creates a new extended logger with the specified name.
public Create ( string name ) : IExtendedLogger
name string
Результат IExtendedLogger

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

Not implemented, NLog logger levels cannot be set at runtime.
public Create ( string name, LoggerLevel level ) : IExtendedLogger
name string The name.
level LoggerLevel The level.
Результат IExtendedLogger

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

Initializes a new instance of the ExtendedNLogFactory class. Configures NLog with a config file name 'nlog.config' Create(string)
public ExtendedNLogFactory ( ) : System
Результат System

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

Initializes a new instance of the ExtendedNLogFactory class with the configfile specified by configFile
public ExtendedNLogFactory ( string configFile ) : System
configFile string The config file.
Результат System