You can write user messages to the current log file by using the WRITE-MESSAGE( ) method on the LOG-MANAGER system handle.
Note: For interactive or batch clients, the WRITE-MESSAGE( ) method writes the log entries to the log file specified by the LOGFILE-NAME attribute or the Client Logging (-clientlog) startup parameter. For WebSpeed agents and AppServer agents, the WRITE-MESSAGE( ) method writes the log entries to the server log file.
The following table shows how to write messages to the log file.