XLOG_EVERY_N_EXACT

Similar to XLOG(...) except only log a message every

Synopsis

Declared in <folly/logging/xlog.h>

#define XLOG_EVERY_N_EXACT(level, n, ...)

Description

The internal counter is process-global and threadsafe and increments are atomic. The over-logging and under-logging schenarios of XLOG_EVERY_N(...) are avoided, traded off for the performance degradation of atomic-rmw operations.

Parameters

NameDescription
ninvocations, exactly.
levelThe folly::LogLevel value at which to log.