![]() |
LogIt++
Header-only, macro-first C++ logging library
|
| ▼ docs | |
| adr | |
| ▼ examples | |
| example_logit_basic.cpp | Demonstrates the usage of the LogIt library with various data types and scenarios |
| example_logit_compression.cpp | Demonstrates file log compression using gzip |
| example_logit_custom_backend.cpp | |
| example_logit_customized.cpp | |
| example_logit_mdbx_logger.cpp | Demonstrates structured log storage with MdbxLogger, including macros, querying by date range, and reading sessions/payloads |
| example_logit_mdc_ndc.cpp | |
| example_logit_memory_logger.cpp | Demonstrates in-memory snapshots, range reads, and live subscriptions |
| example_logit_minimal_crash.cpp | Minimal LogIt++ setup that intentionally aborts after logging a fatal message |
| example_logit_otlp_http.cpp | |
| example_logit_prometheus_payload.cpp | |
| example_logit_prometheus_server.cpp | |
| example_logit_queue_limit.cpp | Shows how to limit the log queue size |
| example_logit_short_macros.cpp | |
| example_logit_system_logger.cpp | Demonstrates usage of the cross-platform SystemLogger |
| ▼ include | |
| ▼ logit_cpp | |
| ▼ logit | |
| ▼ detail | |
| CompressionUtils.hpp | Shared gzip/zstd compression helpers used by OTLP and MDBX backends |
| CompressionWorker.hpp | Background worker that compresses rotated log files |
| LogContext.hpp | Thread-local Mapped Diagnostic Context (MDC) and Nested Diagnostic Context (NDC) |
| LogStream.hpp | Defines the LogStream class for stream-like logging functionality |
| MdbxByteIO.hpp | Byte serialization helpers for MdbxLogger |
| MdbxKeyUtils.hpp | Key encoding helpers for MdbxLogger record ordering |
| MdbxProcessId.hpp | Cross-platform current process id helper for MdbxLogger |
| MpscRingAny.hpp | |
| QueuePolicy.hpp | |
| ScopeTimer.hpp | RAII timer that logs the duration of a scope |
| SingleThreadExecutor.hpp | Per-instance single-thread executor for isolated async logging |
| system_error_macros.hpp | Internal helpers shared by the system error logging macros |
| TaskExecutor.hpp | Task executor used by asynchronous loggers |
| ▼ formatter | |
| ▼ compiler | |
| PatternCompiler.hpp | Header file for the pattern compiler used in log formatting |
| ILogFormatter.hpp | Defines the interface for log formatters used in the logging system |
| SimpleLogFormatter.hpp | Defines the SimpleLogFormatter class for formatting log messages according to a specified pattern or JSON format |
| ▼ loggers | |
| ▼ ConsoleLogger | |
| ConsoleStreamRoute.hpp | Level-based output stream routing for ConsoleLogger |
| ▼ otlp | |
| OtlpCompressionType.hpp | Compression algorithm selected for OTLP/HTTP payloads |
| OtlpJsonFormatConfig.hpp | Defines serialization-related configuration shared by OTLP loggers |
| OtlpJsonSerializer.hpp | Defines OTLP/HTTP JSON serialization helpers for logs |
| OtlpPayloadSplitter.hpp | Splits oversized OTLP log batches into multiple JSON payload chunks |
| OtlpRecordSnapshot.hpp | Defines a stable snapshot of LogRecord data for asynchronous OTLP export |
| ▼ prometheus | |
| PrometheusLoggerMetrics.hpp | Shared built-in metrics state and serialization for Prometheus loggers |
| PrometheusMetricBuilders.hpp | Convenience helpers for constructing Prometheus metric families and samples |
| PrometheusRegistry.hpp | Declarative registry for custom Prometheus application metrics |
| PrometheusTextFormatConfig.hpp | Defines Prometheus text exposition format types and configuration |
| PrometheusTextSerializer.hpp | Prometheus text exposition format serialization helpers |
| ConsoleLogger.hpp | Console logger implementation that outputs logs to the console with color support |
| CrashLogger.hpp | |
| CrashPosixLogger.hpp | POSIX crash logger persisting the last messages to a file descriptor |
| CrashWindowsLogger.hpp | |
| EventLogLogger.hpp | Logger writing to Windows Event Log |
| FileLogger.hpp | File logger implementation that outputs logs to files with rotation and deletion of old logs |
| ILogger.hpp | Defines the interface for loggers used in the logging system |
| ILogReader.hpp | Optional read-only interface for log backends that support querying stored records |
| ILogSubscriber.hpp | Optional live-subscription interface for log backends that can push newly written records |
| MdbxLogger.hpp | MDBX structured log storage backend |
| MemoryLogger.hpp | In-memory logger backend that stores recent log snapshots |
| OtlpHttpLogger.hpp | OTLP/HTTP logger backend for exporting logs to OpenTelemetry collectors |
| OtlpPayloadLogger.hpp | OTLP payload callback logger backend for exporting logs via user-provided callback |
| PrometheusHttpServerLogger.hpp | Prometheus HTTP server logger backend exposing /metrics endpoint |
| PrometheusPayloadLogger.hpp | Prometheus text payload callback logger backend |
| SyslogLogger.hpp | Logger writing to system syslog |
| SystemLogger.hpp | Defines alias to platform system logger |
| UniqueFileLogger.hpp | Logger that writes each log message to a unique file with auto-deletion of old logs |
| WindowsDebugLogger.hpp | Logger that writes to the Windows debug output (OutputDebugStringW) or stderr on other platforms |
| ▼ utils | |
| argument_utils.hpp | Functions for working with arguments and converting them to value arrays |
| BufferedLogEntry.hpp | Structured snapshot entry used by in-memory log buffers |
| encoding_utils.hpp | Utilities for working with character encodings and string transformations |
| format.hpp | Function for formatting strings according to a specified format |
| LogFileInfo.hpp | Public DTO that describes a persisted log file exposed by a file-based backend |
| LogFileReadResult.hpp | Public DTO that contains a persisted log-file read result |
| LogRecord.hpp | Contains the definition of the LogRecord structure for storing log data |
| path_utils.hpp | Utility functions for path manipulation, including relative path computation |
| tag_utils.hpp | Helpers for log tag formatting |
| VariableValue.hpp | Structure for storing variables of various types |
| config.hpp | Configuration macros for the LogIt logging system |
| enums.hpp | Enumerations and utility functions for logging levels and text colors |
| formatter.hpp | Aggregates the formatter subsystem for convenient inclusion |
| log_macros.hpp | Provides various logging macros for different log levels and options |
| Logger.hpp | Defines the Logger class for managing multiple loggers and formatters |
| loggers.hpp | Aggregates all public logger backends |
| utils.hpp | Aggregates the public utilities module |
| logit.hpp | Unified umbrella header for the LogIt++ library |