# Logging

> Instrument your cloud environment with structured logs to detect and debug live issues across Cloud Code scripts, modules, and Triggers.

Logging is a feature of products within Unity Gaming Services (UGS). You can instrument your cloud environment with structured logs to detect and debug live issues. Additionally, some services automatically output logs that provide information on the state of the services used in your project.

Logs are available in the [Unity Dashboard](./tutorials/retrieve-logs/unity-dashboard.md) and through [REST API](./tutorials/retrieve-logs/rest-api.md). You can [filter logs](./concepts/filter-logs.md) by time range, and by content using a query language.

The log schema is fully [OpenTelemetry](https://opentelemetry.io/docs/) compliant.

Logging has these key features and concepts:

* Structured log schema
* Seven days of retention
* Custom log attributes
* Time range filter
* Log fields filter
* Pagination

> **Note:**
>
> This product is not designed to collect Personal Identifiable Information and must not be used for that purpose.

## Supported services

Logs are available from [Cloud Code scripts](../scripts/overview), [Cloud Code modules](../modules/overview), and [Triggers](/triggers.md).
