Note that these samples are for the v1 Samples, using the Google API Client. It's recommended you instead use the Logging v2 samples, which use the Google Cloud client library.
This section contains samples for Google Cloud Logging.
-
Your environment must be setup with authentication information. If you're running in your local development environment and you have the Google Cloud SDK installed, you can do this easily by running:
$ gcloud init
-
Install dependencies from
requirements.txt
:$ pip install -r requirements.txt
-
Depending on the sample, you may also need to create resources on the Google Developers Console. Refer to the sample description and associated documentation page.
For more information on Cloud Logging you can visit:
For more information on the Clloud Logging API Python library surface you can visit:
For information on the Python Client Library visit: