StopLogging()
Previous  Top  Next

:StopLogging() - Disable Logging to Log File.

Syntax

:StopLogging() --> .T. (TRUE)  

Parameters

None.  

Returns

This method always returns .T. (TRUE)!  

Description

Stops and Disables Logging and closes the current Log File. If no Log File is open or logging was already disabled, nothing will change.  

Example

Create a new XbZLibZip object, and start Logging to Log File "MyArchive.log". Then open an existing Zip File named "MyArchive.zip" in Test mode, which will log the complete test and its result. Then Stop Logging and Extract All files to the current directory (without logging), and then close the Zip File.:  

oZip := XbZLibZip():New()  
oZip:StartLogging("MyArchive.log")  
oZip:Open('MyArchive.zip', XBZ_OPEN_TEST)  
oZip:StopLogging()  
oZip:ExtractAll()  
oZip:Close()