PatternLayout.AddConverter Method (String, Type)Apache log4netâ„¢ SDK Documentation
Add a converter to this PatternLayout

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

public void AddConverter(
	string name,
	Type type
)

Parameters

name
Type: System.String
the name of the conversion pattern for this converter
type
Type: System.Type
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