BasicConfigurator Configure Method (ILoggerRepository, IAppender ) | Apache log4net™ SDK Documentation

Initializes the ILoggerRepository using the specified appenders.

Namespace: log4net.Config
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public static ICollection Configure(
    	ILoggerRepository repository,
    	params IAppender[] appenders
    )

    Public Shared Function Configure (
    	repository As ILoggerRepository,
    	ParamArray appenders As IAppender()
    ) As ICollection

    public:
    static ICollection^ Configure(
    	ILoggerRepository^ repository,
    	... array<IAppender^>^ appenders
    )

    static member Configure :
            repository : ILoggerRepository *
            appenders : IAppender[] -> ICollection

#### Parameters

repository
  Type: log4net.Repository
  ILoggerRepository
  The repository to configure.
appenders
  Type:
  log4net.Appender
  IAppender
  The appenders to use to log all logging events.

#### Return Value

Type: ICollection

[Missing <returns> documentation for "M:log4net.Config.BasicConfigurator.Configure(log4net.Repository.ILoggerRepository,log4net.Appender.IAppender[])"]

Remarks

Initializes the ILoggerRepository using the specified appender.

See Also

#### Reference

BasicConfigurator Class
Configure Overload
log4net.Config Namespace