XmlLayoutBase64EncodeProperties Property Apache log4net™ SDK Documentation
Set whether or not to base64 encode the property values.

Namespace: log4net.Layout
Assembly: log4net (in log4net.dll) Version: 4.0

public bool Base64EncodeProperties { get; set; }

Property Value

Type: Boolean

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