Skip to content

Job_DisableLog

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.

Job_DisableLog(sFunctionName) as Boolean

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.

If bStatus Then bStatus = Job_DisableLog("Custom")

Scripting Guidelines

Job_EnableLog Constants Package Property Variables