|
Common System 0.2.0
Common interfaces and patterns for system integration
|
C++20 concepts for logger interfaces. More...
#include <concepts>#include <string>#include <string_view>#include <type_traits>

Go to the source code of this file.
Namespaces | |
| namespace | kcenon |
| namespace | kcenon::common |
| Core interfaces. | |
| namespace | kcenon::common::interfaces |
| namespace | kcenon::common::concepts |
| C++20 concepts for compile-time type validation. | |
Concepts | |
| concept | kcenon::common::concepts::LogLevelEnumLike |
| A type that represents log levels. | |
| concept | kcenon::common::concepts::BasicLogger |
| A type that provides basic logging functionality. | |
| concept | kcenon::common::concepts::LevelAwareLogger |
| A type that supports log level filtering. | |
| concept | kcenon::common::concepts::FlushableLogger |
| A type that supports flushing buffered log messages. | |
| concept | kcenon::common::concepts::StructuredLogger |
| A type that supports structured log entries. | |
| concept | kcenon::common::concepts::LoggerLike |
| A complete logger type satisfying ILogger interface requirements. | |
| concept | kcenon::common::concepts::LoggerProviderLike |
| A type that can provide logger instances. | |
| concept | kcenon::common::concepts::LoggerRegistryLike |
| A type that manages named logger instances. | |
C++20 concepts for logger interfaces.
This header provides concepts for validating logger types used in logging operations. These concepts replace abstract class-based constraints with compile-time validation and clearer error messages.
Requirements:
Thread Safety:
Definition in file logger.h.