PatternLayoutAddConverter Method (String, Type)Apache log4net™ SDK Documentation
Add a converter to this PatternLayout

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

public void AddConverter(
	string name,
	Type type
)

Parameters

name
Type: SystemString
the name of the conversion pattern for this converter
type
Type: SystemType
the type of the converter
Remarks

Add a named pattern converter to this instance. This converter will be used in the formatting of the event. This method must be called before ActivateOptions.

The type specified must extend the PatternConverter type.

See Also

Reference