log4net SDK Reference |

# XmlLayoutSchemaLog4j.FormatXml Method

Actually do the 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
loggingEvent
  the event to write

#### Remarks

Generate XML that is compatible with the log4j schema.

#### See Also

XmlLayoutSchemaLog4j Class | log4net.Layout Namespace