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

Initializes the ILoggerRepository with a default configuration.

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
    )

    Public Shared Function Configure (
    	repository As ILoggerRepository
    ) As ICollection

    public:
    static ICollection^ Configure(
    	ILoggerRepository^ repository
    )

    static member Configure :
            repository : ILoggerRepository -> ICollection

#### Parameters

repository
  Type: log4net.Repository
  ILoggerRepository
  The repository to configure.

#### Return Value

Type: ICollection

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

Remarks

Initializes the specified repository using a ConsoleAppender that will write to Console.Out. The log messages are formatted using the PatternLayout layout object with the DetailConversionPattern layout style.

See Also

#### Reference

BasicConfigurator Class
Configure Overload
log4net.Config Namespace