Produces a formatted string.
Assembly: log4net (in log4net.dll) Version: 184.108.40.206-.NET 4.0
public override void Format( TextWriter writer, LoggingEvent loggingEvent )
Public Overrides Sub Format ( writer As TextWriter, loggingEvent As LoggingEvent )
public: virtual void Format( TextWriter^ writer, LoggingEvent^ loggingEvent ) override
abstract Format : writer : TextWriter * loggingEvent : LoggingEvent -> unit override Format : writer : TextWriter * loggingEvent : LoggingEvent -> unit
- Type: System.IOTextWriter
The TextWriter to write the formatted event to
- Type: log4net.CoreLoggingEvent
The event being logged.
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.