Skip to content

Commit 0337590

Browse files
committed
Add Logging to README.md. closes googleapis#1898.
1 parent f6d654f commit 0337590

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

README.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@ This client supports the following Google Cloud Platform services:
2020
- `Google Cloud Pub/Sub`_
2121
- `Google BigQuery`_
2222
- `Google Cloud Resource Manager`_
23+
- `Google Cloud Logging`_
2324

2425
.. _Google Cloud Datastore: https://github.com/GoogleCloudPlatform/gcloud-python#google-cloud-datastore
2526
.. _Google Cloud Storage: https://github.com/GoogleCloudPlatform/gcloud-python#google-cloud-storage
2627
.. _Google Cloud Pub/Sub: https://github.com/GoogleCloudPlatform/gcloud-python#google-cloud-pubsub
2728
.. _Google BigQuery: https://github.com/GoogleCloudPlatform/gcloud-python#google-bigquery
2829
.. _Google Cloud Resource Manager: https://github.com/GoogleCloudPlatform/gcloud-python#google-cloud-resource-manager
30+
.. _Google Cloud Logging: https://github.com/GoogleCloudPlatform/gcloud-python#google-cloud-logging
2931

3032
If you need support for other Google APIs, check out the
3133
`Google APIs Python Client library`_.
@@ -194,6 +196,28 @@ manage projects using this Client Library.
194196

195197
.. _Resource Manager documentation: https://googlecloudplatform.github.io/gcloud-python/stable/resource-manager-api.html
196198

199+
Google Cloud Logging
200+
--------------------
201+
202+
`Stackdriver Logging`_ API (`Logging API docs`_) allows you to store, search,
203+
analyze, monitor, and alert on log data and events from Google Cloud Platform.
204+
205+
.. _Stackdriver Logging: https://cloud.google.com/logging/
206+
.. _Logging API docs: https://cloud.google.com/logging/docs/
207+
208+
.. code:: python
209+
210+
from gcloud import logging
211+
client = logging.Client()
212+
logger = client.logger('log_name')
213+
logger.log_text("A simple entry") # API call
214+
215+
216+
See the ``gcloud-python`` API `logging documentation`_ to learn how to connect
217+
to Cloud logging using this Client Library.
218+
219+
.. _logging documentation: https://googlecloudplatform.github.io/gcloud-python/stable/logging-usage.html
220+
197221
Contributing
198222
------------
199223

0 commit comments

Comments
 (0)