PatternConverter Convert Method | Apache log4net™ SDK Documentation

Evaluate this pattern converter and write the output to a writer.

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

C#
VB
C++
F#
Copy

    protected abstract void Convert(
    	TextWriter writer,
    	Object state
    )

    Protected MustOverride Sub Convert (
    	writer As TextWriter,
    	state As Object
    )

    protected:
    virtual void Convert(
    	TextWriter^ writer,
    	Object^ state
    ) abstract

    abstract Convert :
            writer : TextWriter *
            state : Object -> unit

#### Parameters

writer
  Type: System.IO
  TextWriter
  TextWriter that will receive the formatted result.
state
  Type: System
  Object
  The state object on which the pattern converter should be executed.

Remarks

Derived pattern converters must override this method in order to convert conversion specifiers in the appropriate way.

See Also

#### Reference

PatternConverter Class
log4net.Util Namespace