info()

The logLib.info() system function records informational messages, directing them to the console or a log file, depending on the configuration of the underlying logging framework.

Syntax

logLib.info(message STRING in)
logLib.info(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 example below, the function logs informational messages either to the console or a log file, depending on how the logging framework is configured.

logLib.info(“This is information text”)
loglib.info("Record: {}", arec);

Compatibility

Table 1. Compatibility considerations for info()
Platform Issue
COBOL generation The info() function is not supported.