C# 클래스 NContext.Extensions.Logging.LogManagerBuilder

Defines a fluent builder for configuring a logging application component.
상속: ApplicationComponentConfigurationBuilderBase
파일 보기 프로젝트 열기: PowerDMS/NContext

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Setup ( ) : void

Applies the component configuration with the ApplicationConfigurationBase.

메소드 상세

AddLogTarget() 공개 메소드

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

LogManagerBuilder() 공개 메소드

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

SetMaxDegreeOfParallelism() 공개 메소드

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.
리턴 LogManagerBuilder

Setup() 보호된 메소드

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