logInfo
Writes an informational message to the log.
Use the following syntax:
logInfo(String msg);
The following table describes the parameter:
Parameter | Parameter Type | Datatype | Description |
---|
msg | Input | String | Information message string. |
You can add the logInfo method to the Java code on any code entry tab except the Imports and Functions tabs.
The following Java code shows how to write a message to the log after the Java transformation processes a message threshold of 1000 rows:
if (numRowsProcessed == messageThreshold) {
logInfo("Processed " + messageThreshold + " rows.");
}