Overview of Logly features
mainLogly is a high-performance, Rust-powered logging library for Python. Key capabilities include:
- High Performance: Rust-native engine with zero unsafe Rust.
- Rich Log Levels: 10 built-in levels (TRACE, DEBUG, INFO, NOTICE, SUCCESS, WARNING, ERROR, FAIL, CRITICAL, FATAL) plus support for custom levels.
- Flexible Sinks: Simultaneous output to Console, file, callable, and network (HTTP, TCP, UDP, Syslog).
- Advanced File Management: Size-based, time-based, clock-based, and weekday rotation with support for gzip, zip, bz2, xz, and zstd compression.
- Structured Logging: JSON output support and context binding (attaching persistent key-value pairs).
- Concurrency & Reliability: Thread-safe logging, non-blocking background workers (
enqueue=True), and exception catching via decorators/context managers. - Integrations: Over 40 integrations including FastAPI, Django, Flask, Redis, and Kafka.