Python Client for Stackdriver Logging
Project description
Python idiomatic client for Stackdriver Logging
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file google-cloud-logging-1.4.0.tar.gz
.
File metadata
- Download URL: google-cloud-logging-1.4.0.tar.gz
- Upload date:
- Size: 55.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81ff672f3b4c6f2a182282aae68f7c3dafbbfc8dc7dcc0db8dc90cd288adc3b8 |
|
MD5 | 1e41bfe5f9919df6075f24402fd86af1 |
|
BLAKE2b-256 | e61f05b2bce675ea6c28a95428971d0f3d78d2adf35434e294564b1bbfee1dad |
Provenance
File details
Details for the file google_cloud_logging-1.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: google_cloud_logging-1.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 43.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1567aa858fbe223973c698f12198e5828fa66f3d42dac27e81b246ff385cd70 |
|
MD5 | e9d49487f6e2e3eb3a849509c95cb5f3 |
|
BLAKE2b-256 | 12a6c6f0fd13fbe70b007b105d42b1914e186dea60bc58628f694ae2b369d20b |