TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 229 subscribers
Post #25845 3
[Release] slick-logger v2.2.0 — Lock-free asynchronous C++20 logging with multi-process shared-memory support

Hi r/cpp,

I'd like to share **slick-logger**, an MIT-licensed, header-only C++20 logging library I've been developing for latency-sensitive applications.

The goal is to keep logging overhead low on application threads while supporting practical features such as multiple sinks, file rotation, and logging across process boundaries.

**Highlights:**

* Lock-free MPMC queue with deferred formatting
* C++20 `std::format` support
* Multi-process logging through shared memory and a dedicated collector
* Multi-sink output, rotation, and customizable formatting
* Source-location capture and configurable runtime statistics
* Windows, Linux, and macOS support
* Available through vcpkg

**Benchmarks**

On an AMD Ryzen 9 5900HX running Windows 11, the published benchmarks measured 10.96 million producer-side logging calls/sec with eight producer threads and small messages, compared with 1.93 million for spdlog async under the tested configurations.

These numbers measure producer-side enqueue performance, not durable log throughput. Queue saturation may result in overwritten entries. The complete benchmark source, hardware details, and methodology are available in the repository.

I'd particularly appreciate feedback on the concurrency architecture, benchmark fairness, and multi-process logging design.

GitHub: [https://github.com/SlickQuant/slick-logger](https://github.com/SlickQuant/slick-logger)

Benchmarks: [https://github.com/SlickQuant/slick-logger/tree/main/benchmarks](https://github.com/SlickQuant/slick-logger/tree/main/benchmarks)

https://redd.it/1x4cqxl
@r_cpp
GitHub GitHub - SlickQuant/slick-logger: Lock-free asynchronous C++20 logging library with deferred formatting, multi-sink output and… Lock-free asynchronous C++20 logging library with deferred formatting, multi-sink output and shared-memory multi-process logging. - SlickQuant/slick-logger
More from @r_cpp
  1. Oct 12, 2026Cheap alternative to reboot parameters (nohz, rcu, isolcpus) for stable benchmarks When no…
  2. Oct 12, 2026This C++ drama is crazy - Adobe votes no https://www.youtube.com/watch?v=DEqx_NMMH9Q https…
  3. Oct 12, 2026FastNoise2: noise generation using SIMD and C++17 https://github.com/Auburn/FastNoise2 htt…
  4. Oct 12, 2026New C++ Conference Videos Released This Month - October 2026 (Updated To Include Videos Re…
  5. Oct 12, 2026cxvm: pin a GCC or Clang version per project on Linux (pyenv/nvm, but for C++ compilers) I…
  6. Oct 12, 2026cppreference-doc for Qt Creator Release cppreference C++ v2025.12.01 · cristianadam/cppref…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →