XmlLayout Base64EncodeMessage Property | Apache log4net™ SDK Documentation

Set whether or not to base64 encode the message.

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

C#
VB
C++
F#
Copy

    public bool Base64EncodeMessage { get; set; }

    Public Property Base64EncodeMessage As Boolean
    	Get
    	Set

    public:
    property bool Base64EncodeMessage {
    	bool get ();
    	void set (bool value);
    }

    member Base64EncodeMessage : bool with get, set

#### Property Value

Type: Boolean
Remarks

By default the log message will be written as text to the xml output. This can cause problems when the message contains binary data. By setting this to true the contents of the message will be base64 encoded. If this is set then invalid character replacement (see InvalidCharReplacement) will not be performed on the log message.

See Also

#### Reference

XmlLayout Class
log4net.Layout Namespace