MSGLOG
Jump to navigation
Jump to search
Graphical display of all messages from within a macro
MSGLOG creates a window in which text messages are displayed. Typically it is used to display informational, warning, or error messages from a macro. The message display includes message type, date/time and message text color-coded by severity: green for informational messages, yellow for warning messages, and red for error messages. MSGLOG set the Midas.logger field to get a copy of all messages generated in the macros Midas context. To handle logging to a file, see the REPORT intrinsic. To automatically instantiate this in a NeXtMidas macro with a panel, use PANEL/LOGGER This adds the logger to the bottom fixed region of the panel. MESSAGES: Receive: EXIT - Exit this primitive LOG - Handle a log message of type INFO, WARN or ERROR RESIZE - Resize the window SWITCHES: /BANNER - Set the banner position. One of: "None,Top,Pane". /FONTSZ - font size in pixels /LINES - number of messages to buffer on/off screen /ROWS - number of rows to display /COLS - number of columns to display