Wrapper around Google Cloud Platform (GCP) logging library to simplify creation of traced logs.
Project description
Introduction
This project provides easy to use wrapper around the Google Cloud Platform logging library to simplify creation of the traced logs.
Quick Start
from surquest.GCP.logger import Logger
# request is an object which allows to check the request headers
# request.headers.get('X-Cloud-Trace-Context', None)
request = None
logger = Logger(request=request)
logger.log(
severity="INFO",
message="This is a test message",
context={
"key1": "value1",
"key2": "value2"
}
)
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 surquest_gcp_logger-0.0.1rc1.tar.gz
.
File metadata
- Download URL: surquest_gcp_logger-0.0.1rc1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa2bad14575a30126b573bd417ffcd316b627f1205af17f569b80eb3fe9b0e62 |
|
MD5 | 355e569917bb966ad0acc80235615a61 |
|
BLAKE2b-256 | 196ecca2f89f89733ac2b0cdea6df70ffe8407e5fc3f588919c855b004776916 |
File details
Details for the file surquest_gcp_logger-0.0.1rc1-py2.py3-none-any.whl
.
File metadata
- Download URL: surquest_gcp_logger-0.0.1rc1-py2.py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7947840ad8928a8d8aa3e6959eee974ab76cf80e3de048c9be8e9aa80436bd01 |
|
MD5 | 8da2378a758eeb877170b374b78b6d34 |
|
BLAKE2b-256 | 9dd214677e2842a7405b19205fdf8e72270eb6fc3eae3e4f63262916706d46dd |