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

A type that supports flushing buffered log messages. More...

#include <logger.h>

Concept definition

template<typename T>
{ t.flush() };
}
A type that provides basic logging functionality.
Definition logger.h:76
A type that supports flushing buffered log messages.
Definition logger.h:124

Detailed Description

A type that supports flushing buffered log messages.

Types supporting flush operation.

Types satisfying this concept can flush any internally buffered log messages to their destination (file, console, etc.).

Example usage:

template<FlushableLogger L>
void ensure_logged(L& logger) {
logger.flush();
}

Definition at line 124 of file logger.h.