---
version: "2026.1.0"
language: "en"
---
# Log Message

The **Log message** block writes a text message to the case run log. It is typically used during debugging or maintenance to record checkpoints, variable values, or other contextual information while a case is running.aintained.

See the [Drive data with Excel](https://www.leapwork.com/services/learning-center/drive-data-with-excel) lesson for an example of how to use the Log message block.

Fully expanded, the **Log Message** block shows the following properties:  
![image-20260112-084855.png](https://docs.leapwork.com/__attachments/a_15d296826738c6821f5ece33a7abf7af420d87448ad3a504336e8f38a8d42cbd/image-20260112-084855.png?cb=9b3ff6f2bc1c2e8396506f75cabe05b6)

**Note:** The screenshot on this page uses the **Elegance Design** , introduced in **2025.3**. If you are using an earlier version, your layout may look different.

## Quick-start

1. Drag **Log message** onto the canvas.

2. Connect the block in the flow and set the **Message** text (required). Optionally add **Text fields** and insert them as tokens into the message.

3. Run the flow when it's ready.

## Building block parameters

Parameters  
* **Block header:** Shows the current name of the **Log message** block. You can rename it at any time by double-clicking the header and typing a new title to keep flows readable and organized.

* **Message:**Defines the text that will be written to the case run log when the block executes. This field can contain both static text and dynamic values inserted as tokens.

  * Right-click inside the field and select **Insert token** to insert one or more tokens from **Text fields** or other available sources.

* **Text fields:**Allows you to add any number of custom key--value fields that hold dynamic content.

  * Click **Add field** to create a field and assign it a value (for example, a position, ID, or status).

  * These fields can then be inserted into **Message** as tokens via **Insert token**, so the log entry can include run-time data instead of only static text.

## Resources

|                                                **Topic**                                                |                                                  **Description**                                                  |
|---------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|
| [Flows FAQ](https://docs.leapwork.com/faq/latest/leapwork-flow-faq/flows-faq.md)                                                 | Common questions about creating, running, and managing flows in Leapwork.                                         |
| [Flows Troubleshooting](https://docs.leapwork.com/troubleshooting/latest/leapwork-flow-troubleshooting/flows-troubleshooting.md) | Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork. |