Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 2.02 KB

File metadata and controls

50 lines (40 loc) · 2.02 KB

\page quickstart Quick start and documentation map

Quick start

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.

Minimal application

#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.

Documentation map

  • Installation and CMakeInstallation 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.
  • BackendsBackend matrix, OTLP exporters, and Prometheus.
  • Stored logs and contextMemoryLogger, MdbxLogger, ILogReader, ILogSubscriber, and MDC/NDC are documented in the generated class reference and examples.
  • Asynchronous deliveryTaskExecutor and Queue back-pressure.
  • PerformanceBenchmarks, including methodology and the historical snapshot disclaimer.
  • Choosing a logging libraryComparison 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.

Public API boundary

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.