LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
LogIt++ Library

Version: 1.0.2

Overview

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_INFO("service started", 42);
}
int main()
#define LOGIT_ADD_CONSOLE_DEFAULT()
Macro for adding the default console logger.
#define LOGIT_WAIT()
Macro for waiting for all asynchronous loggers to finish processing.
#define LOGIT_INFO(...)
Unified umbrella header for the LogIt++ library.

Documentation map

Feature summary

  • Macro families cover direct, printf-style, stream, conditional, throttled, tagged, and scope-timer logging.
  • Console, file, unique-file, memory, crash, system, OTLP, Prometheus, and MDBX backends are available behind their documented feature options.
  • MDC/NDC context, structured records, stored-log readers/subscribers, queue backpressure, and runtime log-level controls are supported.

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.

See the source examples/ directory for complete, buildable examples. The full reference page is intentionally separate so this landing page remains a concise entry point.