XmlLayoutBase FormatXml Method | Apache log4net™ SDK Documentation

Does the actual writing of the XML.

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

C#
VB
C++
F#
Copy

    protected abstract void FormatXml(
    	XmlWriter writer,
    	LoggingEvent loggingEvent
    )

    Protected MustOverride Sub FormatXml (
    	writer As XmlWriter,
    	loggingEvent As LoggingEvent
    )

    protected:
    virtual void FormatXml(
    	XmlWriter^ writer,
    	LoggingEvent^ loggingEvent
    ) abstract

    abstract FormatXml :
            writer : XmlWriter *
            loggingEvent : LoggingEvent -> unit

#### Parameters

writer
  Type: System.Xml
  XmlWriter
  The writer to use to output the event to.
loggingEvent
  Type: log4net.Core
  LoggingEvent
  The event to write.

Remarks

Subclasses should override this method to format the LoggingEvent as XML.

See Also

#### Reference

XmlLayoutBase Class
log4net.Layout Namespace