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, |
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.