Gets the object used for logging MailBee activities into a file or memory buffer.
Namespace: MailBee.SmtpMailAssembly: 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.
using MailBee;
using MailBee.SmtpMail;
Smtp mailer = new Smtp();
mailer.Log.Enabled = true;
mailer.Log.Filename = @"C:\Temp\log.txt";
mailer.SmtpServers.Add("smtp.domain.com");
mailer.Connect();
mailer.Disconnect();
Imports MailBee
Imports MailBee.SmtpMail
Dim mailer = New Smtp
mailer.Log.Enabled = True
mailer.Log.Filename = "C:\Temp\log.txt"
mailer.SmtpServers.Add("smtp.domain.com")
mailer.Connect()
mailer.Disconnect()
See Also