C# Class NContext.Extensions.Logging.LogManagerBuilder

Defines a fluent builder for configuring a logging application component.
Inheritance: ApplicationComponentConfigurationBuilderBase
Afficher le fichier Open project: PowerDMS/NContext

Méthodes publiques

Méthode Description
AddLogTarget ( Func logTargetFactory ) : LogManagerBuilder

Adds the log target.

LogManagerBuilder ( ApplicationConfigurationBuilder applicationConfigurationBuilder ) : System

Initializes a new instance of the ApplicationComponentConfigurationBuilderBase class.

SetMaxDegreeOfParallelism ( Int32 maxDegreeOfParallelism ) : LogManagerBuilder

Sets the max degree of parallelism which the LogManager will use to broadcast log entries to it's ILogTarget collection. Defaults to Environment.ProcessorCount.

Méthodes protégées

Méthode Description
Setup ( ) : void

Applies the component configuration with the ApplicationConfigurationBase.

Method Details

AddLogTarget() public méthode

Adds the log target.
public AddLogTarget ( Func logTargetFactory ) : LogManagerBuilder
logTargetFactory Func The log target factory.
Résultat LogManagerBuilder

LogManagerBuilder() public méthode

Initializes a new instance of the ApplicationComponentConfigurationBuilderBase class.
public LogManagerBuilder ( ApplicationConfigurationBuilder applicationConfigurationBuilder ) : System
applicationConfigurationBuilder ApplicationConfigurationBuilder The application configuration.
Résultat System

SetMaxDegreeOfParallelism() public méthode

Sets the max degree of parallelism which the LogManager will use to broadcast log entries to it's ILogTarget collection. Defaults to Environment.ProcessorCount.
public SetMaxDegreeOfParallelism ( Int32 maxDegreeOfParallelism ) : LogManagerBuilder
maxDegreeOfParallelism System.Int32 The max degree of parallelism.
Résultat LogManagerBuilder

Setup() protected méthode

Applies the component configuration with the ApplicationConfigurationBase.
protected Setup ( ) : void
Résultat void