C# Class NContext.Extensions.Logging.LogManagerBuilder

Defines a fluent builder for configuring a logging application component.
Inheritance: ApplicationComponentConfigurationBuilderBase
Show file Open project: PowerDMS/NContext

Public Methods

Method 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.

Protected Methods

Method Description
Setup ( ) : void

Applies the component configuration with the ApplicationConfigurationBase.

Method Details

AddLogTarget() public method

Adds the log target.
public AddLogTarget ( Func logTargetFactory ) : LogManagerBuilder
logTargetFactory Func The log target factory.
return LogManagerBuilder

LogManagerBuilder() public method

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

SetMaxDegreeOfParallelism() public method

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.
return LogManagerBuilder

Setup() protected method

Applies the component configuration with the ApplicationConfigurationBase.
protected Setup ( ) : void
return void