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.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public void AddConverter(
    	string name,
    	Type type
    )

    Public Sub AddConverter (
    	name As String,
    	type As Type
    )

    public:
    void AddConverter(
    	String^ name,
    	Type^ type
    )

    member AddConverter :
            name : string *
            type : Type -> unit

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

PatternLayout Class
AddConverter Overload
log4net.Layout Namespace