SourcePoint Intel Help

Table of Contents

logmessage

Display a user-defined message in the Log window.

Syntax

logmessage(type, string-expr1, string-expr2)

Where:

type

specifies the type of message (see below).

string-expr1

specifies the text to display in the component field; can be an nstring variable or string constant.

string-expr2

specifies the text to display in the message field; can be an nstring variable or string constant.

Discussion

The logmessage function adds a user-defined message in the Log window.

The type argument specifies the log message type:

LOG_ERROR ย ย ย ย ย Display an error message

LOG_WARNING ย ย ย Display a warning message

LOG_INFO ย ย ย ย ย ย Display an informational message

Example

To add an error log message in the Log window:

Command input:

logmessage(LOG_ERROR, "user macro", "This is a test")

ย 

ย