...
This commit is contained in:
@@ -223,4 +223,18 @@ concept adc_netsession_proto_c =
|
||||
};
|
||||
|
||||
|
||||
|
||||
/* LOGGER */
|
||||
|
||||
template <typename LOGGERT>
|
||||
concept adc_logger_c = requires(LOGGERT log) {
|
||||
// logging method must accept at least the single argument - formating string
|
||||
log.logInfo(std::declval<std::string_view>());
|
||||
log.logInfo(std::declval<std::string_view>(), std::declval<std::string>());
|
||||
|
||||
log.logWarn(std::declval<std::string_view>(), std::declval<std::string>());
|
||||
log.logError(std::declval<std::string_view>(), std::declval<std::string>());
|
||||
};
|
||||
|
||||
|
||||
} // namespace adc::interfaces
|
||||
|
||||
Reference in New Issue
Block a user