Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

surquest_gcp_logger-0.0.1rc2.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

surquest_gcp_logger-0.0.1rc2-py2.py3-none-any.whl (4.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file surquest_gcp_logger-0.0.1rc2.tar.gz.

File metadata

File hashes

Hashes for surquest_gcp_logger-0.0.1rc2.tar.gz
Algorithm Hash digest
SHA256 6a7c453f857068556f23b691150412ce1c996face312198e15c65b4a7c8361d8
MD5 bc880818fc86fad62065056732533d8b
BLAKE2b-256 69ab7b2379afa1cb7ab5e56970f5d1e24c006f72723e4fb3a55d7591819fe8de

See more details on using hashes here.

File details

Details for the file surquest_gcp_logger-0.0.1rc2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for surquest_gcp_logger-0.0.1rc2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1bfff7f528265484d10ad4063fb856895b883aebff8848bdc31b8b579fa28299
MD5 16826d5ffc6f7835db274bd8d0d4002c
BLAKE2b-256 ee9ac89942f73b885138e1d5dadf5a20bc05102ca4b22cb9bdaf361c9a473cb9

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 Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page