Skip to main content

Python Client for Stackdriver Logging

Project description

Python idiomatic client for Stackdriver Logging

Quick Start

$ pip install --upgrade google-cloud-logging

Authentication

With google-cloud-python we try to make authentication as painless as possible. Check out the Authentication section in our documentation to learn more. You may also find the authentication document shared by all the google-cloud-* libraries to be helpful.

Using the API

Stackdriver Logging API (Logging API docs) allows you to store, search, analyze, monitor, and alert on log data and events from Google Cloud Platform.

from google.cloud import logging
client = logging.Client()
logger = client.logger('log_name')
logger.log_text('A simple entry')  # API call

Example of fetching entries:

entries, token = logger.list_entries()
for entry in entries:
    print(entry.payload)

See the google-cloud-python API logging documentation to learn how to connect to Stackdriver Logging using this Client Library.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google-cloud-logging-0.20.0.tar.gz (34.7 kB view details)

Uploaded Source

Built Distribution

google_cloud_logging-0.20.0-py2.py3-none-any.whl (58.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file google-cloud-logging-0.20.0.tar.gz.

File metadata

File hashes

Hashes for google-cloud-logging-0.20.0.tar.gz
Algorithm Hash digest
SHA256 3dec64d8b8f696232e7aca2e8f88cf8a051ef2542e85fa063cfd23dd4b5ce030
MD5 b97005bc0e68663b7c98b26de7538580
BLAKE2b-256 20bcabe14ee014698f1f208a55ce16e18f12a5cd2c8bbf67bd44c4ae936d8d55

See more details on using hashes here.

File details

Details for the file google_cloud_logging-0.20.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for google_cloud_logging-0.20.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8e3db566bb0b4511f890ee15a631b23e1973312ba9f0e8c7d109f9e647df86ad
MD5 1b45d9b6fa7d690881195742b349e1f0
BLAKE2b-256 cd0b31d161bcfb8ca9020ecee399eba2dd29e45f7633d345206ea59ae397e0dc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page