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
23
namespace
kcenon::logger
{
24
28
enum 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
38
enum 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
47
namespace
logger_system
{
48
53
using
overflow_policy
[[deprecated(
"Use kcenon::logger::overflow_policy; alias removed in next minor release"
)]]
54
=
kcenon::logger::overflow_policy
;
55
60
using
health_status
[[deprecated(
"Use kcenon::logger::health_status; alias removed in next minor release"
)]]
61
=
kcenon::logger::health_status
;
62
63
}
// namespace logger_system
kcenon::logger
Definition
common_logger_adapter.h:29
kcenon::logger::overflow_policy
overflow_policy
Overflow policy for when buffers are full.
Definition
logger_types.h:28
kcenon::logger::overflow_policy::drop_newest
@ drop_newest
kcenon::logger::overflow_policy::block
@ block
kcenon::logger::overflow_policy::grow
@ grow
kcenon::logger::overflow_policy::drop_oldest
@ drop_oldest
kcenon::logger::health_status
health_status
Health status enumeration.
Definition
logger_types.h:38
kcenon::logger::health_status::healthy
@ healthy
kcenon::logger::health_status::critical
@ critical
kcenon::logger::health_status::degraded
@ degraded
kcenon::logger::health_status::unhealthy
@ unhealthy
logger_system
Definition
compatibility.h:17
include
kcenon
logger
interfaces
logger_types.h
Generated by
1.12.0