\page quickstart Quick start and documentation map
LogIt++ is a header-only, macro-first C++ logging library. The core and most native backends support C++11. OTLP, the Prometheus HTTP server, and MDBX use C++17 through their CMake feature options.
#include <logit.hpp>
int main() {
LOGIT_ADD_CONSOLE_DEFAULT();
LOGIT_INFO("service started", 42);
LOGIT_WAIT();
}Installation choices and complete CMake examples are collected in the
Installation guide. Optional features and their
dependency requirements are described in the Backend matrix.
- Installation and CMake —
Installation guide, including vendored, submodule, installed-package, and package-manager flows. - Macros and formatting — use the public
<logit.hpp>entry point; the macro and pattern references are available from the API index. - Backends —
Backend matrix,OTLP exporters, andPrometheus. - Stored logs and context —
MemoryLogger,MdbxLogger,ILogReader,ILogSubscriber, and MDC/NDC are documented in the generated class reference and examples. - Asynchronous delivery —
TaskExecutorandQueue back-pressure. - Performance —
Benchmarks, including methodology and the historical snapshot disclaimer. - Choosing a logging library —
Comparison with other C++ logging libraries, including trade-offs and the scope of the comparison. - Examples — browse the
examples/directory in the source repository; each optional example states the feature macro it requires.
Application code should include the public umbrella headers and use the
LOGIT_* macros. The logit::detail namespace and implementation headers are
internal and carry no source or API compatibility guarantee.