log4net SDK Reference

XmlLayout.Base64EncodeMessage Property

Set whether or not to base64 encode the message.

[Visual Basic]
Public Property Base64EncodeMessage As Boolean
[C#]
public bool Base64EncodeMessage {get; set;}

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

XmlLayout Class | log4net.Layout Namespace