Every log.info(...) call can block your hot path, serialize your threads, and slow down your I/O-bound workloads. That's why I created fastlogging-rs: a Rust-powered logging framework that is extremely fast, thread-safe, and available with a similar API in 8 different programming languages.
Release, 0.9.0, is available with the following features:
Initial release of the Rust core (fastlogging crate) with bindings for Python, C, C++, Go, Java (FFM and JNI) and C#
Non-blocking, asynchronous logging — writers run in background threads
Optional file rotation and compression
Optional AES encryption for network logging
Configuration via API or configuration file (JSON, XML, YAML)
Automatic forwarding of log messages from sub processes to the main process
Logging to OpenTelemetry
Because speed matters…
Compared to Python’s built-in logging module:
Writing to a file is up to 147× faster
Rotating file logging is up to 207× faster
Even compared to Apache Log4j, fastlogging-r
Discussion
Begin the discussion
Begin something meaningful by sharing your ideas.