C# Class Castle.Services.Logging.NLogIntegration.ExtendedNLogFactory

Implementation of IExtendedLoggerFactory for NLog.
Inheritance: Castle.Core.Logging.AbstractExtendedLoggerFactory
Afficher le fichier Open project: 7digital/Castle.Core Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

Create() public méthode

Creates a new extended logger with the specified name.
public Create ( string name ) : IExtendedLogger
name string
Résultat IExtendedLogger

Create() public méthode

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.
Résultat IExtendedLogger

ExtendedNLogFactory() public méthode

Initializes a new instance of the ExtendedNLogFactory class. Configures NLog with a config file name 'nlog.config' Create(string)
public ExtendedNLogFactory ( ) : System
Résultat System

ExtendedNLogFactory() public méthode

Initializes a new instance of the ExtendedNLogFactory class with the configfile specified by configFile
public ExtendedNLogFactory ( string configFile ) : System
configFile string The config file.
Résultat System