zlogging(
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

- Client/Server Debug Instrumentation -- using instrumentation with Panorama X server and clients.
- Debug Instrumentation -- conditional logging of the internal state of Panorama program code.
- info("runningunderterminal") -- returns true if Panorama was launched under Terminal.app.
- labelize( -- returns the value of a field or variable along with a label. This saves typing when you need to display fields or variables when logging and debugging.
- labelizeformula( -- returns the value of a formula along with the formula itself as a label.
- labelizeinfo( -- returns the value of an info( function, along with the function itself as a label.
- labelizepattern( -- formats a text value using a label and a pattern.
- zlog -- outputs a message to the instrumentation log (if instrumentation is enabled).
- zlogalways -- unconditionally outputs a message to the instrumentation log.
- zlogcoverage -- allows instrumentation coverage to be turned on or off within a procedure.
- zlogdictionary -- outputs a data dictionary to the instrumentation log (if instrumentation is enabled).

History

Version | Status | Notes
10.2 | New | New in this version.