trace()
The logLib.trace() system function logs trace messages to the console or a log file based on the external logging framework configuration.
Syntax
logLib.trace(message STRING in)
logLib.trace(message STRING in, data ANY in)
- message
-
Input can be any variable or expression that is assignment compatible with the STRING type.
- data
-
Input can be any variable or expression that is assignment compatible with the ANY type.
Example
In the following example, the function logs trace messages to the console or a log file based on the logging framework configuration.
logLib.trace(“This is trace text”)
loglib.trace("data with trace {}", data);
Compatibility
| Platform | Issue |
|---|---|
| COBOL generation | The trace() function is not supported. |