CARB_LOG_EVERY_N_CALLS#
Defined in carb/logging/Log.h
-
CARB_LOG_EVERY_N_CALLS(level, callCount, fmtOrChannel, ...)#
Call-based throttled logging macro for dynamic log level.
Prefer using CARB_LOG_VERBOSE_EVERY_N_CALLS, CARB_LOG_INFO_EVERY_N_CALLS, etc. if the level is static.
Note
This logs only once every N calls by using
staticvariables to track the call count.- Parameters:
level – The Log Levels
callCount – The number of calls between log messages
fmtOrChannel – The printf format specifier string, or log channel declared with CARB_LOG_ADD_CHANNEL.
... – Optional arguments