# Logger

Use the **Logger** component to record messages, variable values, or object data at any point in your flow.

> It helps you monitor progress, validate logic, and troubleshoot issues by providing real-time insights into flow execution.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2FICDbZPZ4ltHfymiWdkyV%2Fimage.png?alt=media&#x26;token=a126e2a9-b8c2-456a-9714-25adfeccf5f9" alt="Logger component in the Fastn flow editor"><figcaption></figcaption></figure>

### **How does it help?**

* Monitor flow execution and debug easily
* Log key events, data points, or outcomes
* Improve visibility and traceability during automation runs

### **Where to view logs?**

All your flow logs are available in the **Logs** section, accessible from the left navigation panel inside your Fastn workspace.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Ftw9sy674mz0oIPzMOOGi%2Fimage.png?alt=media&#x26;token=fc5fd52c-8aa6-4b53-ba39-02e7b4c1bbf6" alt="Logs section in the Fastn left navigation panel"><figcaption></figcaption></figure>

This section displays a list of all your flows including the request and response logs (including start and end points).

* Any **custom Logger entries** you’ve added as part of your flow steps would be reflected here as well.

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2FnydF8O8T9vlREIk6rBbE%2FScreenshot%202025-10-31%20at%2022.45.27.png?alt=media&#x26;token=5299803d-0126-4a27-ac5d-de53ece2c0da" alt="Flow logs list showing request and response entries with custom logger entries"><figcaption></figcaption></figure>

### **Use Case**

Suppose you are processing files inside a **Loop over Templates** step, and each iteration checks a file’s processing status. You may want to log the count of:

* Skipped files
* Successfully processed files
* Failed files

#### Steps

* Add a **Logger** step **after** your loop.
* In the **Message** field, enter a summary string such as:

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Ff8qjcycOVb4BxxMcY8Rc%2Fimage.png?alt=media&#x26;token=ea5be5f6-13d8-4994-acd9-782cdfe66c76" alt="Logger message field with summary string for skipped, processed, and failed file counts"><figcaption></figcaption></figure>

> When your flow runs, this message will appear as a **separate log entry** in the **Logs section** of Fastn under that specific flow.

This lets you easily track loop outcomes and data processing metrics without searching through the entire flow execution trace:

<figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2FAGmcRsEKC7vZoE1h049J%2FScreenshot%202025-10-31%20at%2022.45.56.png?alt=media&#x26;token=c84629e5-ab98-42d3-8c2b-9013622f1e02" alt="Log entry output showing loop outcome metrics in the Fastn Logs section"><figcaption></figcaption></figure>

{% hint style="info" %}
Use multiple Logger steps in key parts of your flow (e.g., before loops, after variable changes, or after conditional branches) to get detailed, structured insights during execution.
{% endhint %}
