Skip to content

Comparison

Logly is a high-performance logging alternative with a Rust-native engine. It provides a clean, intuitive API with 10 built-in log levels, flexible sinks, file rotation, compression, and first-class framework integrations.

Feature Matrix

CapabilityLoglyLogurustructlogstdlib logging
EngineRust (PyO3)Pure PythonPure PythonPure Python
10 built-in levels
Custom levelsManual
Multiple sinks
JSON serializationFormatter dependent
Custom format stringsFormatter dependent
Level filtering
Callable filtering
Context bindingAdapter based
Scoped context
Record patching
Exception catching
File rotationHandler dependent
CompressionHandler dependent
Background workersQueueHandler
HTTP logging
TCP/UDP logging
Syslog
FastAPI integration
Django integration
Flask integration
Rich console
OpenTelemetry
Prometheus
Elasticsearch
Sentry
Pydantic config
Type stubs
Zero unsafe RustN/AN/AN/A

Switching from Loguru

python
# Before (Loguru)
from loguru import logger
logger.add("app.log", rotation="10 MB", retention="7 days")

# After (Logly)
from logly import logger
logger.add("app.log", rotation="10 MB", retention="7 days")

Note

If you're currently using Loguru, switching to Logly is straightforward - just change your imports.

Released under the MIT License.