# Log Message

Publish a message to the Gradient Works Log. This is useful for debugging your Flows.

## Inputs

| Name              | Required | Type    | Description                                                                                       |
| ----------------- | -------- | ------- | ------------------------------------------------------------------------------------------------- |
| level             | Yes      | Integer | The importance level of the log message: from TRACE (lowest level) to ERROR (highest level).      |
| message           | Yes      | String  | The message to include in the log. Merge fields will be merged before publishing the log message. |
| flowInterviewGuid | No       | String  | A unique identifier for the running Flow "interview". This will be automatically provided.        |

## Outputs

| Name    | Type   | Description                      |
| ------- | ------ | -------------------------------- |
| message | String | The message published to the log |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gradient.works/kb/automation-builder-kit-abk/actions/logging/logaction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
