Job_DisableLog
Description
Section titled “Description”Disables logging. Normally used to minimize the number of entries in the log e.g when working with large arrays
Until you call Job_EnableLog with the same name, Job_WriteLog writes nothing to the log. Only the name from the first call counts: if logging is already disabled, a new call with another name doesn’t change which name re-enables it.
Errors reported with Job_ErrorHandling always re-enable logging, so the error is written to the log. When gbDebug is TRUE, logging isn’t disabled.
The function always returns TRUE.
Syntax
Section titled “Syntax”Job_DisableLog(sFunctionName) as Boolean
Parameters
Section titled “Parameters”sFunctionName (String)
Section titled “sFunctionName (String)”A logical name, typically the name of the current function. Use the same name when you call Job_EnableLog. The name isn’t case-sensitive.
Example
Section titled “Example”If bStatus Then bStatus = Job_DisableLog("Custom")