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.1rc1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

surquest_gcp_logger-0.0.1rc1-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.1rc1.tar.gz.

File metadata

File hashes

Hashes for surquest_gcp_logger-0.0.1rc1.tar.gz
Algorithm Hash digest
SHA256 aa2bad14575a30126b573bd417ffcd316b627f1205af17f569b80eb3fe9b0e62
MD5 355e569917bb966ad0acc80235615a61
BLAKE2b-256 196ecca2f89f89733ac2b0cdea6df70ffe8407e5fc3f588919c855b004776916

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for surquest_gcp_logger-0.0.1rc1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7947840ad8928a8d8aa3e6959eee974ab76cf80e3de048c9be8e9aa80436bd01
MD5 8da2378a758eeb877170b374b78b6d34
BLAKE2b-256 9dd214677e2842a7405b19205fdf8e72270eb6fc3eae3e4f63262916706d46dd

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