# Log Category

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

Available in: Page Flow and Cloud Flow

Toolbox Category: Action - Log

Block Type: [Output](https://docs.zingy.ai/app-editor/block-anatomy#output-block)

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

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

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FIAyDuymXgNQojsNQbIOo%2Fimage.png?alt=media&#x26;token=92843472-2b9d-46e4-8a5b-203b126d514a" alt="" width="264"><figcaption><p>Log Category block</p></figcaption></figure></div>

The Log Category block consists of a [Dropdown configuration setting](https://docs.zingy.ai/app-editor/block-anatomy#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](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/write-log-message) block. The *INFO* category is selected in this case.

<figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2F8ql8SEb7JsIRaq9oyfiB%2Fimage.png?alt=media&#x26;token=37e03e10-f997-4776-8437-5cd17300a19e" alt=""><figcaption><p>Example of Write Log Category block</p></figcaption></figure>
