LOG

Description

Write a message to the log file.

The name of the log file is <username>.log. It is stored in the log/trace directory. If the file does not yet exist, it is created. If the file does exist, the message is appended to it.

Syntax

LOG {string|variable}...

When the message is written to the log file, a space is not inserted between the operands.

Examples

  • Write the current time to the log file:

    LOG 'The time is ' *TIME
  • Write a message to the log file, indicating that file name contained in the #FILESPEC variable was not found:

    LOG 'File ' #FILESPEC ' was not found'

Variables Returned

None

Usage

Procedure File: Yes
Command Line: No
Key: No
API: Yes