EmailAddressValidatorLog Property |
Gets the object used for logging MailBee activities into a file or memory buffer.
Namespace: MailBee.AddressCheckAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Logger Log { get; }
Public ReadOnly Property Log As Logger
Get
Property Value
Type:
LoggerA reference to the object used for logging MailBee activities into a file or memory buffer.
Remarks This property is never a null reference (Nothing in Visual Basic)
even if logging is not used.
Examples This sample sets file logging on and sets the filename of the log file. It also configures the format
of the log file to include the threading info. It's helpful in multi-threaded mode of bulk verification of
e-mail addresses as it makes it possible to track individual verification sequences.
using MailBee;
using MailBee.AddressCheck;
EmailAddressValidator valid = new EmailAddressValidator();
valid.Log.Enabled = true;
valid.Log.Filename = @"C:\Temp\log.txt";
valid.Log.Format = LogFormatOptions.AddContextInfo;
valid.DnsServers.Autodetect();
Console.WriteLine(valid.Verify("jdoe@company.com").ToString());
Imports MailBee
Imports MailBee.AddressCheck
Dim valid = New EmailAddressValidator
valid.Log.Enabled = True
valid.Log.Filename = "C:\Temp\log.txt"
valid.Log.Format = LogFormatOptions.AddContextInfo
valid.DnsServers.Autodetect()
Console.WriteLine(valid.Verify("jdoe@company.com").ToString())
See Also