Visionlog 🚀
A high-performance, structured logging library for analytics tracking.
Features
- 🚀 Structured JSON Logging
- 🔎 Easy Integration with OpenTelemetry
- 🎨 Pretty Console Output with Loguru
- ⚡ Ultra-Fast JSON Serialization using orjson
- 🛠 Command-Line Logging Tool
Installation
Install via pip
pip install visionlog
Install via Poetry
poetry add visionlog
🚀 Usage
1. Basic Example
from visionlog import get_logger
logger = get_logger("my-app")
logger.info("User login event", user="john_doe", action="login")
logger.warning("Suspicious activity detected", ip="192.168.1.1")
logger.error("Server crashed!", error_code=500)
2. CLI Usage
You can also log messages directly from the command line:
visionlog-cli --message "Quick log example"
🎯 Advanced Usage
Using Visionlog with OpenTelemetry
from visionlog import get_logger
from opentelemetry import trace
tracer = trace.get_tracer("visionlog-tracer")
logger = get_logger("my-app")
with tracer.start_as_current_span("http_request"):
logger.info("Tracking request event", endpoint="/api/data", status=200)
⚡ Why Use Visionlog?
✅ Super fast JSON serialization using orjson
✅ Structured, formatted logs for analytics
✅ Extensible with OpenTelemetry for tracing
✅ Command-line logging for quick debugging
🛠 Development & Contribution
-
Clone the repository:
git clone https://github.com/szmyty/visionlog.git cd visionlog
-
Install dependencies:
poetry install -
Run the example:
python examples/basic_usage.py
📜 License
Visionlog is released under the MIT License.
Metadata
Release files for visionlog 0.1.1
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 |
|---|---|---|---|---|
| visionlog-0.1.1.tar.gz | 4.0 kB | Without provenance | Details for visionlog-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| visionlog-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for visionlog-0.1.1-py3-none-any.whl |
Total release size: 9.0 kB
Release files / visionlog-0.1.1.tar.gz
| Download URL | visionlog-0.1.1.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fba1b9f6150f1ceb2356351160d9e2e7649b7cc0359ad72ac793d8fc91241be7
|
|
BLAKE2b-256 checksum How to use checksums |
9fd9a3d0ceb4105f8f135f5dd43c5933ca078da772c9ff5b33db7cd54d6ea94b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.6 Darwin/24.3.0
|
Release files / visionlog-0.1.1-py3-none-any.whl
| Download URL | visionlog-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c0872e23a2af32d4b44fee8b718ef6264d12615e400a68dc087c3220df41f39
|
|
BLAKE2b-256 checksum How to use checksums |
1670f0a6bcffd9a53539d6e999799b203982d8612aa298341dcd3407e55d41ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.6 Darwin/24.3.0
|
Security for visionlog 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.