Skip to main content

Python Client for Stackdriver Logging

Project description

Python idiomatic client for Stackdriver Logging

pypi versions

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:

for entry in logger.list_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-1.3.0.tar.gz (57.8 kB view details)

Uploaded Source

Built Distribution

google_cloud_logging-1.3.0-py2.py3-none-any.whl (43.8 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for google-cloud-logging-1.3.0.tar.gz
Algorithm Hash digest
SHA256 d3262b1b74de663fd640a9a6a72ad832e0e7df7eb13351138c036df660e08837
MD5 2609a528bb195acc2d7cac9c896fc283
BLAKE2b-256 bbc82468a618b2d336e160018defea1d834192857bd67aea79e104bf8a1df80c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for google_cloud_logging-1.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f8c1e1bcfc9b417dc353624c5ef3dc4511a3cdd1473e86288d37484d9d8760d5
MD5 f4784b7b91b5bb7afd4867860878e0db
BLAKE2b-256 2b32440a2ae7507320565fb1f00dbab59a6bf2e8e1fcef914bb24bf0e074058f

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