26 std::source_location
const& location = std::source_location::current())
28 alpaka::unused(logLvl, location);
29#if defined(ALPAKA_LOG_STATIC)
30 if constexpr(logLvl.mask() & ALPAKA_LOG_STATIC_LVL_MASK)
31 return internal::Scoped{logLvl, location};
33 return internal::Scoped{logLvl};
34#elif defined(ALPAKA_LOG_DYNAMIC)
35 static std::once_flag flag;
36 static size_t envLogMask = 0;
42 if(
char const* envStr = std::getenv(
"ALPAKA_LOG_DYNAMIC_LVL"))
43 envLogMask = std::stoull(envStr);
46 if(logLvl.mask() & envLogMask)
47 return internal::Scoped{logLvl, location};
49 return internal::Scoped{logLvl};
64 std::source_location
const& location = std::source_location::current())
66 alpaka::unused(logLvl, callable, location);
67#if defined(ALPAKA_LOG_STATIC)
68 if constexpr(logLvl.mask() & ALPAKA_LOG_STATIC_LVL_MASK)
69 internal::Info{logLvl, callable, location};
70#elif defined(ALPAKA_LOG_DYNAMIC)
71 static std::once_flag flag;
72 static size_t envLogMask = 0;
78 if(
char const* envStr = std::getenv(
"ALPAKA_LOG_DYNAMIC_LVL"))
79 envLogMask = std::stoull(envStr);
81 if(logLvl.mask() & envLogMask)
82 internal::Info{logLvl, callable, location};
void info(concepts::Level auto logLvl, auto const &callable, std::source_location const &location=std::source_location::current())
Write a meta data message to the output.