XmlLayoutBase Format Method (TextWriter, LoggingEvent)Apache log4net™ SDK Documentation
Produces a formatted string.

Namespace: log4net.Layout
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public override void Format(
	TextWriter writer,
	LoggingEvent loggingEvent
)

Implements

ILayout Format(TextWriter, LoggingEvent)
Remarks

Format the LoggingEvent and write it to the OnlineTextWriter.

This method creates an OnlineXmlTextWriter that writes to the writer. The OnlineXmlTextWriter is passed to the FormatXml(XmlWriter, LoggingEvent) method. Subclasses should override the FormatXml(XmlWriter, LoggingEvent) method rather than this method.

See Also