# Structured logging

A step of the [Cloud application](https://gradus.kazet.blog/tree/cloud-application) tree on Gradus, in the Observability area: Logs, metrics, traces, alerts.

Page: https://gradus.kazet.blog/tree/cloud-application/step/structured-logging

Add structured, leveled logging with correlation IDs, so every request leaves a trail that can be followed.

Usually comes after: [First deploy](https://gradus.kazet.blog/tree/cloud-application/step/first-deploy).

Leads to: [Metrics](https://gradus.kazet.blog/tree/cloud-application/step/metrics), [Log aggregation](https://gradus.kazet.blog/tree/cloud-application/step/log-aggregation), [Synthetic monitoring](https://gradus.kazet.blog/tree/cloud-application/step/synthetic-monitoring).

## Prompt for your AI assistant

```
Add structured JSON logging with log levels and request correlation IDs throughout the application, replacing any ad-hoc print or console statements.
```

Every step of the tree: https://gradus.kazet.blog/tree/cloud-application/llms.txt
