A lightweight, fast, and flexible C++ logging library with minimal dependencies and easy integration.
Loguru is a lightweight C++ logging library that provides fast, flexible, and feature-rich logging for applications. It solves the need for a simple yet powerful logging solution that produces human-readable and grep-able logs without slowing down compilation.
C++ developers who need a minimal, high-performance logging library for applications ranging from games to system software, especially those frustrated with bulky or slow alternatives.
Developers choose Loguru for its ease of integration (just two files), fast compilation times, and rich feature set including scopes, stack traces, and custom callbacks, all while maintaining cross-platform compatibility and no dependencies.
A lightweight C++ logging library
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Just two files (loguru.hpp and loguru.cpp) with no dependencies, allowing easy drop-in without complex build system changes, as highlighted in the README.
The header has no #includes, which the README notes can speed up compilation by about 10% compared to libraries like GLOG, reducing project build times.
Supports multiple output modes, verbosity levels, assertions, stack traces, and custom callbacks for on-screen display, making it versatile for games and real-time apps.
Configurable buffering enables faster logging than alternatives; benchmarks in the README show it can be twice as fast as GLOG in buffered mode.
Using std::ostream-style logging or fmtlib requires additional defines and includes, adding complexity and potential dependencies, which contradicts the minimal claim.
The project is maintained by one individual, as admitted in the 'Why another logging library?' section, raising concerns about long-term support and updates.
Only offers truncate and append modes for files, lacking built-in features for log rotation, archival, or remote logging, which might require manual implementation.
loguru is an open-source alternative to the following products: