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

See the [Drive data with Excel](/content/services/learning-center/drive-data-with-excel/index.html) lesson for an example of how to use the Log message block.

Fully expanded, the **Log Message** block shows the following properties:

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