Command: monitor

Syntax

monitor

Description

Display the monitor log window.

Parameters

None

Switches

Notes

The monitor window command input area is available for command entry when the indicator to the left is showing green. When showing another color input is prohibited.

The monitor log window displays monitor output printed during command execution, e.g. tell, list etc., and error log output when command echoing is active. By default the window is created at startup and is shown in full. It can be created iconic by the statement monitor 0 (or invisible using monitor -1)in the System Configuration File, or by the program command line option -monitor=0 or monitor=-1.

Irrespective of whether or not the monitor log window is open, printed output may also be directed to a log file named mxlog<pid>.log, where <pid> is the session process-id. This file will be located in the logs directory, or $MXTEMPDIR if the logs directory does not exist. This can be achieved at session startup by the statement monlog 1 in the System Configuration File, or by the program command line option -monlog.

The typing of Control T in any window will invoke the command monitor, thus making it visible. On Windows systems a logo is present in the icon tray to the left of the clock, and left clicking on this icon will perform the same function.

The monitor window has a menubar with several predefined buttons to perform debugging aids:

Examples

Ensure the monitor window is displayed.

monitor

Display the monitor window at a screen position with a history buffer of 100 lines.

monitor -r=100,-pos=<50,50>

Direct monitor output to a user file.

open mychan,-of='/tmp/monlog.txt'
monitor -ch=mychan

See Also

Commands:

errlog, list, open, tell

Files:

logfile, fire.ini

Identifiers:

echoing (numeric), monitor_menubar (menupane), sys_control_t (numeric)

Utilities:

mxlog