Jazzmine Logging
A flexible, production-ready logging library for Python with support for multiple sinks and async operations.
Features
- Multiple Sinks: Support for 15+ logging destinations
- Async Support: Async logging with
aiohttpand async sink implementations - Flexible Configuration: YAML/JSON-based configuration or just pass in a string
- Context Management: Request context tracking
- Optional Dependencies: Install only what you need
Installation
Basic Installation
pip install jazzmine-logging
With Optional Sinks
# Individual sinks
pip install jazzmine-logging[sentry]
pip install jazzmine-logging[kafka]
pip install jazzmine-logging[redis]
pip install jazzmine-logging[honeycomb]
pip install jazzmine-logging[aws]
pip install jazzmine-logging[gcp]
# All sinks
pip install jazzmine-logging[all]
Supported Sinks
HTTP-Based Sinks
- Datadog - Datadog HTTP API
- Loki - Grafana Loki
- New Relic - New Relic Logs API
- Logstash - Elastic Logstash HTTP input
Cloud Provider Sinks
- CloudWatch - AWS CloudWatch Logs (requires
awsextra) - Pub/Sub - Google Cloud Pub/Sub (requires
gcpextra)
Message Queue Sinks
- Kafka - Apache Kafka (requires
kafkaextra) - Redis - Redis Streams (requires
redisextra)
Observability Platforms
- Sentry - Error tracking (requires
sentryextra) - Honeycomb - Observability platform (requires
honeycombextra)
Agent-Based Sinks
- Vector - Vector HTTP sink
- Fluent Bit - Fluent Bit HTTP input
- Promtail - Grafana Promtail
- Graylog - GELF format (HTTP/UDP/TCP)
Quick Start
from jazzmine.logging import BaseLogger
# Initialize logger
logger = BaseLogger.from_config('logging_config.yaml')
# Log messages
logger.info('Application started')
logger.error('Something went wrong', extra={'user_id': 123})
# Async logging
await logger.alog('info', 'Async log message')
Configuration Example
logger_name: my_app
level: INFO
sinks:
- type: datadog
api_key: your_api_key
site: datadoghq.com
- type: sentry
dsn: your_sentry_dsn
environment: production
License
MIT License - see LICENSE file for details.
Part of the Jazzmine Ecosystem
This package is part of the Jazzmine framework. Check out other packages:
jazzmine-security- Security utilitiesjazzmine-monitoring- Monitoring and metrics
Metadata
Release files for jazzmine-logging 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jazzmine_logging-0.1.0.tar.gz | 13.0 kB | Without provenance | Details for jazzmine_logging-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jazzmine_logging-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for jazzmine_logging-0.1.0-py3-none-any.whl |
Total release size: 34.1 kB
Release files / jazzmine_logging-0.1.0.tar.gz
| Download URL | jazzmine_logging-0.1.0.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f82b7ef7ae0d5a4980e3483f488243b14c4d73bff55206a3f11618ed492d3dab
|
|
BLAKE2b-256 checksum How to use checksums |
dac51d6a5ac561cba8412c48a1865fb65aad5de9cb5d900c1dc4428521b30a37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Release files / jazzmine_logging-0.1.0-py3-none-any.whl
| Download URL | jazzmine_logging-0.1.0-py3-none-any.whl |
|---|---|
| Size | 21.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f65e9f104362a207a1d20d784a6038d20ec32ab3da39ad64a6488edb8fa1870a
|
|
BLAKE2b-256 checksum How to use checksums |
ead4580e6970795381da7cf1df5840aa35ca2528bf13d4e980e2d07115356072
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for jazzmine-logging 0.1.0
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.