Name
dbg_printf — print formatted output onto the system console
Synopsis
dbg_printf
(
|
in format varchar , |
in arg1 any , | |
... , | |
in
argn
any
) ; |
Description
dbg_printf
prints a variable number
(max. eight) of arguments to the system console of Virtuoso server,
each argument formatted in C
printf
style,
according to the format string specified in the first argument.
Parameters
format
a C sprintf -style format string
argn
The arguments to format and print in any type
Return Values
None
Examples
Example 24.87. Simple example
The frammitz just zilched!
if (frammitz_status 0) { dbg_printf ('Error: Frammitz status: %d.\nProgram terminated', frammitz_status); signal ('42666', 'Frammitz zilched'); }
Hitting these lines would cause something like this in a client:
*** Error 42666: [Virtuoso Driver][Virtuoso Server]Frammitz zilched at line 84 (84) of Top-Level: zappi()
The console output would look like this:
Error: Frammitz status: 2. Program terminated