Skip to main content

Google Cloud Platform logging package

Project description

GCP Cloud logger

Package for Google Cloud Logging client


Install

pip install gcp-cloud-logger

Usage

from gcp_cloud_logger import cloud_logger as logger

# Default use GOOGLE_APPLICATION_CREDENTIALS to get credential.json path
logger.setup(
    name="logger_name",
    credential_path="/your/service/account/json",
)
# OR
logger.setup(
    name="logger_name",
    credential_json="{}",
)

# Info
logger.info("Test info log message")

# Warning
logger.warn("Test warning log message")

# Error
logger.error("Test error log message")

# Critical
logger.critical("Test critical log message")

Result

Result log

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

gcp-cloud-logger-0.2.4.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

gcp_cloud_logger-0.2.4-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file gcp-cloud-logger-0.2.4.tar.gz.

File metadata

  • Download URL: gcp-cloud-logger-0.2.4.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for gcp-cloud-logger-0.2.4.tar.gz
Algorithm Hash digest
SHA256 c40c81b798430f284a5f647eceeffbc46f29304c3cfea04b56a21e0588ca1193
MD5 7e425c575cb5bf87682667f7a8a6c8c0
BLAKE2b-256 3d3fd2004d90742618cd108b814be897f041c24023c7e776f8e9f5febcf3f171

See more details on using hashes here.

File details

Details for the file gcp_cloud_logger-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: gcp_cloud_logger-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for gcp_cloud_logger-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 84637f5905ea9dfaeb664602e68fd6284ea88daf371b5983c5bd5f64dc7c08b5
MD5 e9d9e7c6d1e6a814f9f25e34d7737753
BLAKE2b-256 f52b6867a9c97579aa67db4065fb71a41a0a9e24ca09ab302309963ef08c398c

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