CARB_LOG_EVERY_N_CALLS#

Defined in carb/logging/Log.h

CARB_LOG_EVERY_N_CALLS(level, callCount, fmt, ...)#

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 static variables to track the call count.

Parameters:
  • level – The \ref loglevel

  • callCount – The number of calls between log messages

  • fmt – The print format specifier string

  • ... – Optional arguments