LoggingEvent WriteRenderedMessage Method | Apache log4net™ SDK Documentation

Write the rendered message to a TextWriter

Namespace: log4net.Core
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public void WriteRenderedMessage(
    	TextWriter writer
    )

    Public Sub WriteRenderedMessage (
    	writer As TextWriter
    )

    public:
    void WriteRenderedMessage(
    	TextWriter^ writer
    )

    member WriteRenderedMessage :
            writer : TextWriter -> unit

#### Parameters

writer
  Type: System.IO
  TextWriter
  the writer to write the message to

Remarks

Unlike the RenderedMessage property this method does store the message data in the internal cache. Therefore if called only once this method should be faster than the RenderedMessage property, however if the message is to be accessed multiple times then the property will be more efficient.

See Also

#### Reference

LoggingEvent Class
log4net.Core Namespace