Logger System 1.0.0
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
18#pragma once
19
20#include <chrono>
21#include <string>
22
23namespace kcenon::logger {
24
28enum class overflow_policy {
29 block, // Block until space is available
30 drop_oldest, // Drop oldest messages
31 drop_newest, // Drop newest messages
32 grow // Dynamically grow buffer
33};
34
38enum class health_status {
39 healthy, // System is operating normally
40 degraded, // System has some issues but still operational
41 unhealthy, // System has serious issues
42 critical // System is in critical state
43};
44
45} // namespace kcenon::logger
46
47namespace logger_system {
48
53using overflow_policy [[deprecated("Use kcenon::logger::overflow_policy; alias removed in next minor release")]]
55
60using health_status [[deprecated("Use kcenon::logger::health_status; alias removed in next minor release")]]
62
63} // namespace logger_system
overflow_policy
Overflow policy for when buffers are full.
health_status
Health status enumeration.