void trace(String traceMsg) void trace(int traceLevel, String traceMsg) void trace(int traceLevel, int messageNum) void trace(int traceLevel, int messageNum, String param [,...]) void trace(int traceLevel, int messageNum, Object[] paramArray)
The trace() method generates a message that the map prints if tracing is turned on. This method has five forms:
You can set the trace level for a map as part of the Map Properties.
The following example generates a Level 2 trace message and supplies the text of the message:
trace (2, "Starting to trace at Level 2");
The following example prints message 201 in the map message file if the trace level is 2 or higher. The message has two parameters, a name and a year, for which this method call passes values.
trace(2, 201, "DAVID", "1961");