log4net SDK Reference

XmlLayoutBase.FormatXml Method 

[This is preliminary documentation and subject to change.]

Does the actual writing of the XML.

[Visual Basic]
MustOverride Protected Sub FormatXml( _
   ByVal writer As XmlWriter, _
   ByVal loggingEvent As LoggingEvent _
)
[C#]
protected abstract void FormatXml(
   XmlWriter writer,
   LoggingEvent loggingEvent
);

Parameters

writer
The writer to use to output the event to.
loggingEvent
The event to write.

Remarks

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

See Also

XmlLayoutBase Class | log4net.Layout Namespace