1 #ifndef THROTTLEDMSGLOGGER_H_
2 #define THROTTLEDMSGLOGGER_H_
9 #include "tools/Throttle.h"
10 #include "tools/MsgLogger.h"
26 :
Throttle(name, seconds_between_messages), name(name), too_many(false)
40 void LOG_MSG(
const char *format, ...)
41 __attribute__ ((format (printf, 2, 3)));
void fire()
Fire the throttle so that isPermitted will return 'false' until the threshold is exceeded.
Definition: ThrottledMsgLogger.h:33
A throttled MsgLogger.
Definition: ThrottledMsgLogger.h:19
void LOG_MSG(const char *format,...) __attribute__((format(printf
Log a throttled message.
Timer for throttling messages, thread safe.
Definition: Throttle.h:19
ThrottledMsgLogger(const char *name, double seconds_between_messages)
Create a throttled logger.
Definition: ThrottledMsgLogger.h:25
void fire()
Fire the throttle so that isPermitted will return 'false' until the threshold is exceeded.