Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

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(
���XmlWriterwriter,
���LoggingEventloggingEvent
);

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