Produces a formatted string.
Namespace: log4net.LayoutAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- writer
- Type:
System.IO TextWriter
The TextWriter to write the formatted event to
- loggingEvent
- Type: log4net.Core LoggingEvent
The event being logged.
Implements
ILayout Format(TextWriter, LoggingEvent)Remarks
Format the LoggingEvent and write it to the TextWriter.
This method creates an XmlTextWriter that writes to the
writer. The
XmlTextWriter is passed
to the FormatXml(XmlWriter, LoggingEvent) method. Subclasses should override the
FormatXml(XmlWriter, LoggingEvent) method rather than this method.
See Also