XmlLayoutBase64EncodeMessage 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.6.0-.NET 4.0
Syntax

public bool Base64EncodeMessage { 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