Using the Stackdriver Logging API

For reference documentation for the API, see Stackdriver Logging API.

For sample code, including instructions for setting up client libraries, see Logging's Client Libraries. For additional code samples, see Writing and Managing Logs and Exporting Logs.

To try out the API, you can make calls right from your browser using the APIs Explorer. For a command-line interface to the Stackdriver Logging API, see gcloud logging command.

Setup tasks

For instructions on setting up client libraries and authorizing the Stackdriver Logging API, with sample code, see Stackdriver Logging API Client Libraries.

Client libraries can use Application Default Credentials to easily authenticate with Google APIs and send requests to those APIs. With Application Default Credentials, you can test your application locally and deploy it without changing the underlying code. For more information, including code samples, see Google Cloud Platform Auth Guide.

You can restrict how much access your application has to Logging data by using Cloud IAM permissions and roles. For more information, see Logging Access Control Guide.

Hai trovato utile questa pagina? Facci sapere cosa ne pensi:

Invia feedback per...

Stackdriver Logging
Hai bisogno di assistenza? Visita la nostra pagina di assistenza.