Gets or sets Encoding to be used when writing into the log file.
A reference to the Encoding object specifying which character encoding to use when writing data into the log file. The default value is DefaultEncoding.
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).
| Exception Type | Condition |
|---|---|
| MailBeeInvalidArgumentException | value is a null reference (Nothing in Visual Basic). |
Logger Class | MailBee Namespace