Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
logger_types.h
Go to the documentation of this file.
1// BSD 3-Clause License
2// Copyright (c) 2025, 🍀☀🌕🌥 🌊
3// See the LICENSE file in the project root for full license information.
4
13#pragma once
14
15#include <chrono>
16#include <string>
17
18namespace logger_system {
19
23enum class overflow_policy {
24 block, // Block until space is available
25 drop_oldest, // Drop oldest messages
26 drop_newest, // Drop newest messages
27 grow // Dynamically grow buffer
28};
29
33enum class health_status {
34 healthy, // System is operating normally
35 degraded, // System has some issues but still operational
36 unhealthy, // System has serious issues
37 critical // System is in critical state
38};
39
64
65} // namespace logger_system
overflow_policy
Overflow policy for when buffers are full.
health_status
Health status enumeration.
logger_error_code
Logger error codes.