log4net SDK Reference |

# IPlugin.Attach Method

Attaches the plugin to the specified ILoggerRepository.

[Visual Basic]
Sub Attach( _
ByVal repository As ILoggerRepository _
)
[C#]
void Attach(
ILoggerRepository repository
);

#### Parameters

repository
  The ILoggerRepository that this plugin should be attached to.

#### 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

IPlugin Interface | log4net.Plugin Namespace