PatternLayoutConverter Convert Method (TextWriter, LoggingEvent) | Apache log4net™ SDK Documentation

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

Namespace: log4net.Layout.Pattern
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,
    	LoggingEvent loggingEvent
    )

    Protected MustOverride Sub Convert (
    	writer As TextWriter,
    	loggingEvent As LoggingEvent
    )

    protected:
    virtual void Convert(
    	TextWriter^ writer,
    	LoggingEvent^ loggingEvent
    ) abstract

    abstract Convert :
            writer : TextWriter *
            loggingEvent : LoggingEvent -> unit

#### Parameters

writer
  Type: System.IO
  TextWriter
  TextWriter that will receive the formatted result.
loggingEvent
  Type: log4net.Core
  LoggingEvent
  The LoggingEvent on which the pattern converter should be executed.

See Also

#### Reference

PatternLayoutConverter Class
Convert Overload
log4net.Layout.Pattern Namespace