logInfo
Writes an informational message to the session log.
Use logInfo in any section of the Java editor except Import Packages.
Use the following syntax:
logInfo(String logMessage);
Argument | Data Type | Input/Output | Description |
---|
logMessage | String | Input | Information message string. |
Use the following Java code to write a message to the session log after the Java transformation processes a message threshold of 1000 rows:
if (numRowsProcessed == messageThreshold) {
logInfo("Processed " + messageThreshold + " rows.");
}
The following message appears in the session log:
[JTX_1012] [INFO] Processed 1000 rows.