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

Fore more information on setting up your Python development environment, such as installing pip and on your system, please refer to Python Development Environment Setup Guide for Google Cloud Platform.

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.4.0.tar.gz (55.2 kB view details)

Uploaded Source

Built Distribution

google_cloud_logging-1.4.0-py2.py3-none-any.whl (43.9 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for google-cloud-logging-1.4.0.tar.gz
Algorithm Hash digest
SHA256 81ff672f3b4c6f2a182282aae68f7c3dafbbfc8dc7dcc0db8dc90cd288adc3b8
MD5 1e41bfe5f9919df6075f24402fd86af1
BLAKE2b-256 e61f05b2bce675ea6c28a95428971d0f3d78d2adf35434e294564b1bbfee1dad

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for google_cloud_logging-1.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a1567aa858fbe223973c698f12198e5828fa66f3d42dac27e81b246ff385cd70
MD5 e9d49487f6e2e3eb3a849509c95cb5f3
BLAKE2b-256 12a6c6f0fd13fbe70b007b105d42b1914e186dea60bc58628f694ae2b369d20b

See more details on using hashes here.

Provenance

Supported by

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