MESSAGELOG

Purpose:

Writes status line messages to text file.

Syntax:

MESSAGELOG("filename", type)

"filename"

-

Optional. A string, the name of the logfile where messages are to be written. Defaults to message.log.

type

-

Optional. An integer, the type of messages to save:

-1:

Write all messages (default)

0:

Write no messages  

1:

Write only informational messages  

2:

Write only errors 

Example:

messagelog(2)

 

user actions...

 

messagelog(0)

viewfile("message.txt")

 

creates the logfile message.txt, then closes and displays the file.

Remarks:

The logfile is automatically closed when DADiSP exits.

 

Message logging can also be set in dadisp.cnf via the following parameters:

 

MESSAGE_LOGNAME filename

MESSAGE_LOGGING -1:ALL 0:off (default) 1:info 2:errors

 

Turning on message logging via dadisp.cnf allows all startup messages to be placed in the logfile.

See Also:

dadisp.cnf (configuration file)

VIEWFILE