#include <loggingLogThrottle.h>
Public Member Functions | |
LogThrottle (int maxLogPerInterval=-1) | |
void | configureLogging (int maxLogPerTimeInterval) |
unsigned int | checkPublishLogRecord () |
void | updateLogCounter (unsigned int logsSent) |
Private Attributes | |
int | maxLogPerTimeInterval |
unsigned int | timeIntervalInMillis |
unsigned long | intervalTimeStartMillis |
unsigned int | logCounter |
unsigned int | curr_time |
logging::LogThrottle::LogThrottle | ( | int | maxLogPerInterval = -1 |
) |
unsigned int logging::LogThrottle::checkPublishLogRecord | ( | ) |
void logging::LogThrottle::configureLogging | ( | int | maxLogPerTimeInterval | ) |
void logging::LogThrottle::updateLogCounter | ( | unsigned int | logsSent | ) |
unsigned int logging::LogThrottle::curr_time [private] |
unsigned long logging::LogThrottle::intervalTimeStartMillis [private] |
unsigned int logging::LogThrottle::logCounter [private] |
int logging::LogThrottle::maxLogPerTimeInterval [private] |
unsigned int logging::LogThrottle::timeIntervalInMillis [private] |