# Log Category

{% hint style="info" %}
**Block Information**

Available in: Page Flow and Cloud Flow

Toolbox Category: Action - Log

Block Type: [Output](/app-editor/page-flow/block-anatomy.md#output-block)

Output Type: [*text*](/app-editor/page-flow/references/value-types.md)
{% endhint %}

**`Log Category`** is an [output block](/app-editor/page-flow/block-anatomy.md#output-block) that provides pre-defined logging categories for use with the [Write Log Message](/app-editor/page-flow/toolbox-blocks/write-log-message.md) block. The output is of type [*text*](/app-editor/page-flow/references/value-types.md) and is compatible with [Value Parameters](/app-editor/page-flow/block-anatomy.md#value-parameters) of type [*text*](/app-editor/page-flow/references/value-types.md) or of type [*any*](/app-editor/page-flow/references/value-types.md).

<div align="left"><figure><img src="/files/cHTaseSrjenHuvyZ881V" alt="" width="264"><figcaption><p>Log Category block</p></figcaption></figure></div>

The Log Category block consists of a [Dropdown configuration setting](/app-editor/page-flow/block-anatomy.md#dropdown) with the following pre-defined  logging categories:

* INFO: Used for log messages that are for informational purposes.
* ERROR: Used for log messages that indicate the occurrence of an error in your app.
* WARNING: Used for log messages that indicate an invalid state or some other type of unexpected input was encountered.&#x20;

***

## Usage Example

The example below shows the Log Category block being used with the [Write Log Message](/app-editor/page-flow/toolbox-blocks/write-log-message.md) block. The *INFO* category is selected in this case.

<figure><img src="/files/zTPHT4oGZScxQyuiImCH" alt=""><figcaption><p>Example of Write Log Category block</p></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.zingy.ai/app-editor/page-flow/toolbox-blocks/log-category.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.
