LOG Statement

The LOG statement specifies that SMTP is to log information about all SMTP traffic. The origin, sender, and recipients of each piece of mail are written to the log as mail is received and delivered. To turn off logging, use the NOLOG statement.
Read syntax diagramSkip visual syntax diagramLOG DISKLOG SPOOL

Operands

DISK
Indicates that log information is to be appended to the SMTP log file; DISK is the default.
SPOOL
Indicates that log information is to be written to the console.