Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

SFU​.logMessageToWMLogger

  • Last UpdatedJun 25, 2024
  • 1 minute read

Use SFU.logMessageToWMLogger() method to show log messages in the AVEVA Work Tasks Logger to the user.

Syntax

SFU.logMessageToWMLogger(message, logType);

Parameters

Parameter

Description

message

Log message to be display to the user.

logType

Determines the type of log message, whether it is an information, an error, or a warning.

For example,
- if logType is specified as 1, it is an error message
- if logType is specified as 2, it is a warning message
- if logType is specified as 3, it is an information message

Return Value

None.

Example

// Show the welcome message to the user.

SFU.logMessageToWMLogger("Welcome to AVEVA Work Tasks", 3);

OR

SFU.logMessageToWMLogger("Welcome to AVEVA Work Tasks", "3")

Note: This API can be used to send log messages from Work Tasks Pro app to AVEVA Work Tasks Logger.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in