Log Windows
Previous  Top  Next

Log windows can be used as general purpose reporting windows. Each log window is associated with a log file. Content written to the log window will be automatically saved on system exit.
You can write content to a log file without the corresponding log window to be open. Log windows are regular MDI child windows like screen windows. They are located on a particular desktop page and their layout will be saved with the desktop settings. The caption bar indicates the log file the log window is associated with.

There can be only one window open per log file on the same desktop page. However, you can have several different log files open. You can use the File menu to open and save log windows.
As opposed to the message window you can copy text from a log window.

You can specify font and color information for a log window. This information is saved with the desktop file and not in the log file itself. So if you close the log window and open it again the font and color information will be lost. However, it will be preserved in between GSEOS restarts since the desktop will apply the settings to the file as configured.

You can set color and attribute information when inserting text into a log file with the Gseos.Log() function. However, this format information is not saved and on reopening the file it will be lost. The reason for this is that we save the file in plain ASCII without any formatting information. So while you can mark up your logs while the system is running the output file will be a plain text file.


logfile

The Gseos module exports three functions you can use with log windows:

Gseos.Log
Gseos.LogSave
Gseos.LogReload