Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

GChat Logging Handler

Logging handler to send the logs to Google Chat (GChat) room/space.

Installation

Install with pip:

$ pip install gchat-logging-handler

Features

  • Push logs to google chat using the webhook url
  • Send a message to google chat using a simple CLI command (also using webhook)

Usage/Examples

In code

import logging

from gchat_logging_handler import GChatHandler


logger = logging.getLogger()
logger.setLevel(logging.DEBUG)
gchat_handler = GoogleChatHandler(
    webhook_url="https://chat.googleapis.com/v1/spaces/XXXXXXXXX"
)
gchat_handler.setLevel(logging.ERROR)
logger.addHandler(gchat_handler)

logger.debug("DEBUG - not in gchat")
logger.info("INFO - not in gchat")
logger.error("ERROR - in gchat")

CLI Command

$ python -m gchat_logging_handler \
    "https://chat.googleapis.com/v1/spaces/XXXXXXXXX" \
    "Sending via CLI"

License

BSD 3-Clause

Metadata

Release files for gchat-logging-handler 0.0.1.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gchat-logging-handler 0.0.1.dev0
File Size Uploaded Provenance Actions
gchat_logging_handler-0.0.1.dev0.tar.gz 3.4 kB Without provenance Details for gchat_logging_handler-0.0.1.dev0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gchat-logging-handler 0.0.1.dev0
File Interpreter ABI Platform Actions
gchat_logging_handler-0.0.1.dev0-py3-none-any.whl Python 3 none any Details for gchat_logging_handler-0.0.1.dev0-py3-none-any.whl

Total release size: 7.3 kB

Release files / gchat_logging_handler-0.0.1.dev0.tar.gz

Download URL gchat_logging_handler-0.0.1.dev0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
aeb55443c50574ce20c2f5240722fe9686488a1dfa85eba8b08a77bb45bf6ba6
BLAKE2b-256 checksum
How to use checksums
8cda2d419c5d0c66471af4bec6c298aa655e4169cf000ff1940f28cd03815b09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.9

Release files / gchat_logging_handler-0.0.1.dev0-py3-none-any.whl

Download URL gchat_logging_handler-0.0.1.dev0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a805512483d3f7a1c7c7bda1f1ffcdbf1518f8d4b1574b598ef229b1d75f535
BLAKE2b-256 checksum
How to use checksums
c8228796369ce9a89c0ddb8a75d87dabe03bc237aaebd1cf4ba9dbe8836e7e03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.9

Security for gchat-logging-handler 0.0.1.dev0

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page