# Log

The **Log** building block allows you to record custom log messages during a TaskBot's run. These messages are displayed in the running log dialog and saved in the Run Reports ([Using Run Reports](/using-zerowork/using-run-reports.md)) for future reference.

If no message is entered, a warning is recorded, but the TaskBot run remains unaffected and its status is not marked as failed.

<figure><img src="/files/9qjBjelmSnIX6ZpwWgB6" alt=""><figcaption></figcaption></figure>

This is how a log message is displayed in the running log dialog:

<figure><img src="/files/Cg7CpxERIRVcH2AnAJUA" alt=""><figcaption></figcaption></figure>

It will also be part of the logs in the **TaskBot Run Reports**:

<figure><img src="/files/zlbGPgQKxk7e9HSKcn0q" alt=""><figcaption></figcaption></figure>


---

# 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.zerowork.io/using-zerowork/using-building-blocks/log.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.
