MailBee.NET Objects 4.0

Logger.FileEncoding Property

Gets or sets Encoding to be used when writing into the log file.

public System.Text.Encoding FileEncoding {get; set;}

Property Value

A reference to the Encoding object specifying which character encoding to use when writing data into the log file. The default value is DefaultEncoding.

Remarks

If log strings contain international characters which are replaced with ? characters in the log file, consider setting this property to the appropriate encoding (such as UTF8).

Note   This property is ignored when memory log is used (because no character-to-byte conversion needs to be performed for memory log).

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException value is a null reference (Nothing in Visual Basic).

See Also

Logger Class | MailBee Namespace