Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
kcenon::common::concepts::LoggerLike Concept Reference

A complete logger type satisfying ILogger interface requirements. More...

#include <logger.h>

Concept definition

template<typename T>
A type that supports flushing buffered log messages.
Definition logger.h:124
A type that supports log level filtering.
Definition logger.h:101
A complete logger type satisfying ILogger interface requirements.
Definition logger.h:168
A type that supports structured log entries.
Definition logger.h:144

Detailed Description

A complete logger type satisfying ILogger interface requirements.

Types satisfying this concept provide full logging functionality including level awareness, flushing, and structured logging. This concept matches the ILogger interface contract.

Example usage:

template<LoggerLike L>
void setup_logging(std::shared_ptr<L> logger) {
logger->set_level(interfaces::log_level::debug);
logger->log(interfaces::log_level::info, "Logging initialized");
logger->flush();
}

Definition at line 168 of file logger.h.