trace_class
is either a class name or the class ID integer value expressed as a character string.
threshold
is a non-negative integer setting the statement threshold for execution.
format
is a printf-style output format.
arg
is an expression to be evaluated for output. It corresponds to a print formatting directive in the format argument.
To determine the value of a class ID, query the classid column of the systraceclasses system catalog table. As an example, consider four levels of tracing: none, light, medium, and heavy. One way to define four levels is to define a trace level of 0 as no tracing, levels 1 to 10 as light, levels 11 to 20 as medium, and any value above 20 as heavy. For light tracing, insert the following line in the code:
0
1
10
11
20