Skip to main content

rocketloghandler

Send your Python logs to RocketChat.

Implements a custom handler for the Python logging module.

For a full working example see rocketlog_test.py.

Using Logging in multiple modules

Ensure there is a hierarchical structure in the logger name separated by dots. The name is set when calling logging.getLogger.

Usage example

import logging

from rocketloghandler.rocketloghandler import RocketLogHandler

rocketHandler = RocketLog(USER_ID, TOKEN, SERVER, CHANNEL_NAME, USER_ALIAS)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
log = logging.getLogger(__name__)
rocketHandler.setFormatter(formatter)
log.addHandler(rocketHandler)
log.warning("Never say no to the panda! Otherwise: https://www.youtube.com/watch?v=XYz3sl0LEA4")

Contributing

Feel free to contribute to this project. A contribution guide is available. Please add yourself to the list of contributors when you submit the pull request.

Metadata

Release files for rocketloghandler 0.1.1

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

Source distribution (sdist)

Source distribution for rocketloghandler 0.1.1
File Size Uploaded Provenance
rocketloghandler-0.1.1.tar.gz 1.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for rocketloghandler 0.1.1
File Interpreter ABI Platform
rocketloghandler-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.1 kB

Release files / rocketloghandler-0.1.1.tar.gz

Download URL rocketloghandler-0.1.1.tar.gz
Size 1.9 kB
Tags Source
SHA-256 checksum
How to use checksums
da1f093380292c63b843d248c3b3e9bea0bd44fb7bd193b12c11da05c434a804
BLAKE2b-256 checksum
How to use checksums
d1580856e6cd24398fcb8b10582ce2c54364dd4265cbff59ba4f8e9b7ee4e1ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/3.7.4

Release files / rocketloghandler-0.1.1-py3-none-any.whl

Download URL rocketloghandler-0.1.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8cf408d5be02b08d6f7654f4fa883786ed12610ebced721f7d208d257c8eeaa8
BLAKE2b-256 checksum
How to use checksums
d4c923582551897b4fa2c754100eacfb0e4704d28a3cab5a5d8a47b4aedec913
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.0 CPython/3.7.4

Security for rocketloghandler 0.1.1

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

0.1.1 This release

2 release files No provenance

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