PluginSkeleton Attach Method | Apache log4net™ SDK Documentation

Attaches this plugin to a ILoggerRepository.

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

C#
VB
C++
F#
Copy

    public virtual void Attach(
    	ILoggerRepository repository
    )

    Public Overridable Sub Attach (
    	repository As ILoggerRepository
    )

    public:
    virtual void Attach(
    	ILoggerRepository^ repository
    )

    abstract Attach :
            repository : ILoggerRepository -> unit
    override Attach :
            repository : ILoggerRepository -> unit

#### Parameters

repository
  Type: log4net.Repository
  ILoggerRepository
  The ILoggerRepository that this plugin should be attached to.

#### Implements

IPlugin
Attach(ILoggerRepository)
Remarks

A plugin may only be attached to a single repository.

This method is called when the plugin is attached to the repository.

See Also

#### Reference

PluginSkeleton Class
log4net.Plugin Namespace