---
title: "Your app's logs: the while.sh docs"
url: https://while.sh/en/docs/building-blocks/logs/
updated: 2026-11-09
---

# Logs

What your app writes to its standard output is kept, and your agent searches it to understand what happened.

> You, to your agent: Check the logs to see why the export failed last night.

## When to use it

Use it to understand what an app did: it writes to its standard output, and your agent reads and searches this log.

## How it works

The standard output of each service is kept, and is searched with the LogsQL syntax.

## Your agent's MCP tools

Your agent handles it with the `get_logs` tool.

## Guides

- [Roll back to the previous version in a second, from your AI agent](/en/guides/rollback/)
