|
EPICS ARCHIVER V4
|
A throttled MsgLogger. More...
#include <ThrottledMsgLogger.h>
Public Member Functions | |
| ThrottledMsgLogger (const char *name, double seconds_between_messages) | |
| Create a throttled logger. More... | |
| void | fire () |
| Fire the throttle so that isPermitted will return 'false' until the threshold is exceeded. | |
| void | LOG_MSG (const char *format,...) __attribute__((format(printf |
| Log a throttled message. | |
Public Member Functions inherited from Throttle | |
| Throttle (const char *name, double seconds_between_messages) | |
| Create throttle with the given name and threshold. More... | |
| void | reset () |
| Reset the throttle so that isPermitted will return 'true'. More... | |
| void | fire () |
| Fire the throttle so that isPermitted will return 'false' until the threshold is exceeded. | |
| bool | isPermitted (const epicsTime &when) |
| bool | isPermitted () |
| double | getThrottleThreshold () |
A throttled MsgLogger.
Messages that arrive slower than seconds_between_messages threshold specifies are simply printed. When more messages arrive within the threshold time, only one indication "More ..." is printed.
|
inline |
Create a throttled logger.
| name | The name of the throttle, used for the suppression message. |
| seconds_between_messages | The throttle delay. |
1.8.5