ClearLog Method

Clears log file (if logging is on).

Consider calling this method each time your application starts or enters new cycle of processing. Otherwise, log file will increase in size with every IMAP4 session.

blnResult = ObjectName.ClearLog  
Parameters: None 
Return value As Boolean True if successful, False if logging is off or error has occurred (path denoted by LogFilePath property is not accessible, file is locked, etc.)  

Usage example:

Dim Mailer
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.IMAP4")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.IMAP4")
'In ASP use Response.Write instead of MsgBox
Mailer.EnableLogging = True
Mailer.LogFilePath = "C:\my_log.txt"
Mailer.LicenseKey = "put your license key here"

See Also:

EnableLogging Property
LogFilePath Property

Copyright © 2002-2022, AfterLogic Corporation. All rights reserved.