This document provides information about how you can write and view log entries.
Write logs
To write logs to Cloud Logging, you can do any of the following:
- Call the Logging API using Logging's Client Libraries for your programming language.
- Call the Logging API REST endpoint directly. See the Logging API reference documentation.
- Use the gcloud CLI. For more information,
see the
gcloud loggingcommand-line interface.
Read logs
To read log entries in Logging, you can do any of the following:
-
In the Cloud de Confiance console, go to the Logs Explorer page:
If you use the search bar to find this page, then select the result whose subheading is Logging.
For more information, see Logs Explorer overview.
Call the Logging API through the client libraries for your programming language.
Call the Logging API REST endpoints directly. See the Logging API reference documentation.
Use the gcloud CLI. For more information, see the
gcloud loggingcommand-line interface.