log4net SDK Reference

PatternLayout.AddConverter Method (String, Type)

Add a converter to this PatternLayout

[Visual Basic]
Overloads Public Sub AddConverter( _
   ByVal name As String, _
   ByVal type As Type _
)
[C#]
public void AddConverter(
   string name,
   Type type
);

Parameters

name
the name of the conversion pattern for this converter
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

PatternLayout Class | log4net.Layout Namespace | PatternLayout.AddConverter Overload List