XmlLayout.FormatXml Method Apache log4netâ„¢ SDK Documentation
Does the actual writing of the XML.

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

protected override void FormatXml(
	XmlWriter writer,
	LoggingEvent loggingEvent
)

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

Override the base class FormatXml(XmlWriter, LoggingEvent) method to write the LoggingEvent to the XmlWriter.

See Also

Reference