This commit is contained in:
Timur A. Fatkhullin
2024-11-12 01:00:22 +03:00
parent 6acc1f94ba
commit 9769c24005
6 changed files with 48 additions and 15 deletions

View File

@@ -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