InterSystems FAQ rubric
You can use the WriteToConsoleLog method of the %SYS.System class to write any message to the console log.
The following is an example:
%SYSwrite##classFor details on the parameters that can be specified in the WriteToConsoleLog method, please refer to the following document:

Hello!