Controls logging of interactive mode commands to a disk file.
comlog [[file=filename]] [[on|off|reset]]
filename (literal or ^string) –
file=filenamesubcommand selects the file to log interactive mode statements to. This can be any legal file name.
If the name of the file is to be taken from a string variable, the name of the string must be preceded by the ^ (caret) operator.
There is no default file name.
comlog onturns on command logging to the current file. If the file already exists, subsequent commands will be appended.
comlog offcloses the log file and turns off command logging.
comlog resetturns on command logging to the current log file, resetting the log file by deleting any previous commands.
Interactive mode statements are always logged into the file specified by the
log_fileconfiguration variable in the
gauss.cfgfile, regardless of the state of comlog.
comlog file= filenameselects the file but does not turn on logging.
comlog offwill turn off logging. The filename will remain the same. A subsequent
comlog onwill cause logging to resume. A subsequent
comlog resetwill cause the existing contents of the log file to be destroyed and a new file created.
comlog byitself will cause the name and status of the current log file to be printed in the window.