XmlLayout Base64EncodeProperties Property | Apache log4net™ SDK Documentation

Set whether or not to base64 encode the property values.

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

C#
VB
C++
F#
Copy

    public bool Base64EncodeProperties { get; set; }

    Public Property Base64EncodeProperties As Boolean
    	Get
    	Set

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

    member Base64EncodeProperties : bool with get, set

#### Property Value

Type: Boolean
Remarks

By default the properties will be written as text to the xml output. This can cause problems when one or more properties contain binary data. By setting this to true the values of the properties will be base64 encoded. If this is set then invalid character replacement (see InvalidCharReplacement) will not be performed on the property values.

See Also

#### Reference

XmlLayout Class
log4net.Layout Namespace