Similar to XLOG(...) except only log a message every
Synopsis
Declared in <folly/logging/xlog.h>
#define XLOG_EVERY_N(level, n, …)
Description
The internal counter is process‐global and threadsafe, but to avoid the performance degradation of atomic‐rmw operations, increments are non‐atomic. Some increments may be missed under contention, leading to possible over‐logging or under‐logging effects.
Parameters
Name |
Description |
n |
invocations, approximately. |
level |
The |
Created with MrDocs