SQL/MX 2.x Reference Manual (H06.04+)

MXCI Commands
HP NonStop SQL/MX Reference Manual540440-003
4-34
LOG Command
LOG Command
Considerations for LOG
Examples of LOG
The LOG command starts or stops MXCI logging to a disk file. When logging is in
effect, MXCI writes the commands you enter to a file (in addition to executing them)
and writes the output of the commands to the file.
Use LOG only within an MXCI session.
log_file
is the name of a file to which MXCI writes the commands you use and the
command output. LOG closes the previous log file, if any, and opens log_file as
the new log file. The path name can be either an absolute path name or a relative
path name.
To stop logging, omit log_file.
[COMMAND[S]]
logs only MXCI input, not output or prompts.
CLEAR
clears log_file before logging. If you omit CLEAR, LOG appends the new log to
existing data in log_file.
Considerations for LOG
Contents of the Log File
The log file includes all lines you enter except FC editing lines, including the final
version of any line you edit by using FC. It also includes the prompts for lines that you
enter and all text that MXCI displays or prints in response to those lines, including
output from commands and diagnostic messages—except for output from the CD, FC,
HISTORY, LS, and ! commands.
Concurrent MXCI Sessions
If two or more concurrent MXCI sessions use the same log_file name in a LOG
command, each MXCI session writes information to the same log file. After the log file
is closed, you cannot determine which information was written by each MXCI session.
LOG [log_file [COMMAND[S]] [CLEAR]]
Caution. To ensure that log information is retained for an MXCI session, use a unique name
for the log file. For more information, see Concurrent MXCI Sessions on page 4-34.