Logs a message on the Output Panel with an option to the show it under Trace, Info, Warning or Error level.
Level - A dropdown menu in which you can choose whether to display the message in the Trace, Info, Warning, or Error.
Message - The message that will be displayed.
- DisplayName - Renames the activity.
- Add a Log Message activity inside the Workflow area.
- Declare a String variable and name it as "message" with a default value of "This is an error message".
- Select the Log Message activity then choose Error under the Level dropdown selection. Afterwards write message on the Message input box.
The use case should look like the following screenshot.
The output should look like this in the Output panel, specifically in the Trace level: