A high-performance, structured logging library for analytics tracking.
- π Structured JSON Logging
- π Easy Integration with OpenTelemetry
- π¨ Pretty Console Output with Loguru
- β‘ Ultra-Fast JSON Serialization using orjson
- π Command-Line Logging Tool
pip install visionlogpoetry add visionlogfrom 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)You can also log messages directly from the command line:
visionlog-cli --message "Quick log example"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)β
Super fast JSON serialization using orjson
β
Structured, formatted logs for analytics
β
Extensible with OpenTelemetry for tracing
β
Command-line logging for quick debugging
-
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
Visionlog is released under the MIT License.