Using the Logging API

For reference documentation for the API, see 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 Logging API, see gcloud logging command.

Setup tasks

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

用戶端程式庫可以使用應用程式預設憑證輕鬆向 Google API 進行驗證,然後傳送要求到這些 API。有了應用程式預設憑證,您可在本機測試應用程式,並部署應用程式,而無須變更基礎程式碼。如需詳細資訊,包括範例程式碼,請參閱 Google Cloud Platform 驗證指南

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.



Stackdriver Logging