Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter FiveGeneral Functions (continued)

LogSetMessageType Function

Overview

The LogSetMessageType function sets the type of message as part of the data to be added to the next log entry using the AddMessage function. The type is added as a Log Object type.

Syntax/Parameters

Syntax

int = LogSetMessageType ( [handle hLogObject], int type );

Parameters

type

An int specifying the type of message. The following are possible values:

  Code Value   Comment
  LOG_NONE   0   No meaning
  LOG_INFO   1   Informational message
  LOG_ADVISORY   2   Message that is advisory in nature
  LOG_WARNING   3   A Warning
  LOG_ERROR   4   An error
  LOG_FATAL   5   An error but considered FATAL to the process
  LOG_STRING_ONLY   6   General string (no attributes)

 

Return Value

Returns an int as as the previous type value.

Remarks

Log message properties are useful attributes that can allow the user to better interact with log information. If the log is displayed in the Information View, the message type changes the colors and appearance of the message. The types are also counted as messages and are added to give the user a better idea of how many errors and warnings have occurred. See the LogDisplay and LogGetMessageCount functions for more information.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic