zlogging(
DATABASE
,
PROCEDURE
)

The zlogging( function returns true if zlogging is enabled for the current database and procedure, otherwise false.


Parameters

This function has two parameters:

database – database containing the running code. This is used internally by Panorama, you should normally omit this parameter and let Panorama determine the database automatically.

procedure – procedure containing the running code. This is used internally by Panorama, you should normally omit this parameter and let Panorama determine the procedure automatically.


Description

This function can be used to test whether zlog is enabled for the current procedure. This allows you to run different code depending on whether debugging is enabled. This example starts a timecheck if logging is enabled (see starttimecheck).

if zlogging()
    starttimecheck "Special Task"
endif

See Also


History

VersionStatusNotes
10.2NewNew in this version.