log4net SDK Reference |

# XmlLayout.FormatXml Method

Does the actual writing of the XML.

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

#### Parameters

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

#### Remarks

Override the base class FormatXml method to write the LoggingEvent to the XmlWriter.

#### See Also

XmlLayout Class | log4net.Layout Namespace