Define RCUTILS_LOG_WARN_THROTTLE_NAMED

Define Documentation

RCUTILS_LOG_WARN_THROTTLE_NAMED(get_time_point, duration, name, ...)

Log a message with given severity with the following condition:

  • Log calls are ignored if the last logged message is not longer ago than the specified duration.

Note

The condition will only be evaluated if this logging statement is enabled.

Parameters:
  • get_time_point[in] Function that returns rcutils_ret_t and expects a rcutils_time_point_value_t pointer.

  • duration[in] The duration of the throttle interval as an integral value in milliseconds.

  • name[in] The name of the logger

  • ...[in] The format string, followed by the variable arguments for the format string