Python idiomatic client for Stackdriver Logging
Quick Start
$ pip install --upgrade google-cloud-logging
For more information on setting up your Python development environment, such as installing pip and virtualenv on your system, please refer to Python Development Environment Setup Guide for Google Cloud Platform.
Note: The creation of cross project sinks (log exports) is not currenlty supported. You may only create sinks within the same project set for the client. In other words, the parameter uniqueWriterIdentity is not yet available.
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.
Metadata
Release files for google-cloud-logging 1.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| google-cloud-logging-1.6.0.tar.gz | 105.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| google_cloud_logging-1.6.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 206.9 kB
Release files / google-cloud-logging-1.6.0.tar.gz
| Download URL | google-cloud-logging-1.6.0.tar.gz |
|---|---|
| Size | 105.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5c20606e7e5c3c1a7577a91e7ffc56924198fa8e112d279107b684b151d7e1a
|
|
BLAKE2b-256 checksum How to use checksums |
198f6b1e271578b6873b74bc3e3a3c214fd1ee83ed75b4efc911f18f1279bee2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / google_cloud_logging-1.6.0-py2.py3-none-any.whl
| Download URL | google_cloud_logging-1.6.0-py2.py3-none-any.whl |
|---|---|
| Size | 101.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
fb28b1f57dc47a1ff28defea34302d2d5b50b67e6e4b32bfc18d999586c14dd7
|
|
BLAKE2b-256 checksum How to use checksums |
33847fa4cc1326e19d45bd177be862e48ac3bd3044c6a754d168ebe5694fda9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for google-cloud-logging 1.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.