MCPcopy Create free account
hub / github.com/ClickHouse/ai-sdk-cpp / install_logger

Function install_logger

include/ai/logger.h:117–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115} // namespace detail
116
117inline void install_logger(std::shared_ptr<Logger> logger) {
118 if (logger) {
119 std::atomic_store(&detail::logger_instance(), std::move(logger));
120 }
121}
122
123inline Logger& logger() {
124 auto ptr = std::atomic_load(&detail::logger_instance());

Callers 3

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 2

mainFunction · 0.68
mainFunction · 0.68