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

Convert the pattern to the rendered message

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

C#
VB
C++
F#
Copy

    protected override sealed void Convert(
    	TextWriter writer,
    	LoggingEvent loggingEvent
    )

    Protected Overrides NotOverridable Sub Convert (
    	writer As TextWriter,
    	loggingEvent As LoggingEvent
    )

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

    abstract Convert :
            writer : TextWriter *
            loggingEvent : LoggingEvent -> unit
    override 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 event being logged

Remarks

Render the GetFullyQualifiedName(LoggingEvent) to the precision specified by the Option property.
See Also

#### Reference

NamedPatternConverter Class
Convert Overload
log4net.Layout.Pattern Namespace