<br />

<br />


**Managed Airflow (Gen 3)** \| [Managed Airflow (Gen 2)](https://docs.cloud.google.com/composer/docs/composer-2/enable-saving-logs-to-environment-bucket "View this page for Managed Airflow (Gen 2)") \| Managed Airflow (Legacy Gen 1)

<br />

<br />

<br />

<br />

<br />

<br />

Managed Airflow (Gen 3) environments
**don't save Airflow task logs to the environment's bucket** . As an
alternative, you can [configure a sink](https://docs.cloud.google.com/logging/docs/export/configure_export_v2) in
Cloud Logging to route logs to any of the supported locations.

For an example of routing environment logs to a Cloud Storage bucket,
see
[Restrict locations for Managed Airflow logs](https://docs.cloud.google.com/composer/docs/composer-3/configure-resource-location-restrictions#restrict-logs-location).

> [!IMPORTANT]
> **Important:** If you use a sink to route logs, we recommend to **keep environment logs in Cloud Logging** as well as in the configured location. If you use the provided example, skip the last step and don't add an exclusion for Cloud Logging.


## What's next

- [View logs](https://docs.cloud.google.com/composer/docs/composer-3/view-logs)
- [Monitor environments](https://docs.cloud.google.com/composer/docs/composer-3/monitor-environments)