LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
loggers.hpp
Go to the documentation of this file.
1#pragma once
2#ifndef LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_HPP_INCLUDED
3#define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_HPP_INCLUDED
4
11
12#include "config.hpp"
13#include "utils.hpp"
16
17namespace logit {
18
21
22} // namespace logit
23
24#ifndef __EMSCRIPTEN__
26#endif
27
28#include <algorithm>
29#include <atomic>
30#include <cstddef>
31#include <cstdint>
32#include <deque>
33#include <mutex>
34#include <string>
35#include <vector>
36
39#include "loggers/ILogger.hpp"
49
50#ifdef LOGIT_WITH_OTLP
53#endif
54
55#ifdef LOGIT_WITH_PROMETHEUS
58#endif
59#ifdef LOGIT_WITH_PROMETHEUS_SERVER
61#endif
62
63#ifdef LOGIT_WITH_MDBX
65#include "detail/MdbxByteIO.hpp"
69#endif
70
71#endif // LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_LOGGERS_HPP_INCLUDED
Shared gzip/zstd compression helpers used by OTLP and MDBX backends.
Background worker that compresses rotated log files.
Console logger implementation that outputs logs to the console with color support.
Logger writing to Windows Event Log.
File logger implementation that outputs logs to files with rotation and deletion of old logs.
Optional read-only interface for log backends that support querying stored records.
Optional live-subscription interface for log backends that can push newly written records.
Defines the interface for loggers used in the logging system.
Byte serialization helpers for MdbxLogger.
Key encoding helpers for MdbxLogger record ordering.
MDBX structured log storage backend.
Cross-platform current process id helper for MdbxLogger.
In-memory logger backend that stores recent log snapshots.
OTLP/HTTP logger backend for exporting logs to OpenTelemetry collectors.
OTLP payload callback logger backend for exporting logs via user-provided callback.
Prometheus HTTP server logger backend exposing /metrics endpoint.
Prometheus text payload callback logger backend.
Declarative registry for custom Prometheus application metrics.
Per-instance single-thread executor for isolated async logging.
Logger writing to system syslog.
Defines alias to platform system logger.
Task executor used by asynchronous loggers.
Logger that writes each log message to a unique file with auto-deletion of old logs.
Logger that writes to the Windows debug output (OutputDebugStringW) or stderr on other platforms.
Configuration macros for the LogIt logging system.
QueuePolicy
Queue overflow handling policy used by TaskExecutor and SingleThreadExecutor.
The primary namespace for the LogIt++ library.
Aggregates the public utilities module.