MCPcopy Create free account
hub / github.com/AimRT/AimRT / GetLogger

Function GetLogger

src/interface/aimrt_module_cpp_interface/context/context.h:684–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

682#ifdef AIMRT_CONTEXT_DEFINE_GLOBAL_LOGGER_HANDLE
683
684inline aimrt::logger::LoggerRef GetLogger() {
685 if (!aimrt::context::details::g_thread_ctx.ctx_ptr.expired()) {
686 return aimrt::context::details::GetCurrentContext()->GetRawRef().GetLogger();
687 }
688 return aimrt::logger::GetSimpleLoggerRef();
689}
690
691#endif

Callers

nothing calls this directly

Calls 4

GetCurrentContextFunction · 0.85
GetSimpleLoggerRefFunction · 0.85
GetRawRefMethod · 0.80
GetLoggerMethod · 0.45

Tested by

no test coverage detected