PatternConverter Format Method | Apache log4net™ SDK Documentation

Write the pattern converter to the writer with appropriate formatting

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

C#
VB
C++
F#
Copy

    public virtual void Format(
    	TextWriter writer,
    	Object state
    )

    Public Overridable Sub Format (
    	writer As TextWriter,
    	state As Object
    )

    public:
    virtual void Format(
    	TextWriter^ writer,
    	Object^ state
    )

    abstract Format :
            writer : TextWriter *
            state : Object -> unit
    override Format :
            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

This method calls Convert(TextWriter, Object) to allow the subclass to perform appropriate conversion of the pattern converter. If formatting options have been specified via the FormattingInfo then this method will apply those formattings before writing the output.

See Also

#### Reference

PatternConverter Class
log4net.Util Namespace