XLOG_FIRST_N

Similar to XLOG(...) except only log a message the first n times, exactly.

Synopsis

Declared in <folly/logging/xlog.h>

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

Description

The internal counter is process-global and threadsafe and exchanges are atomic.

Parameters

NameDescription
levelThe folly::LogLevel value at which to log.
nThe number of initial invocations to log.