XLOGF_FIRST_N

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

Synopsis

Declared in <folly/logging/xlog.h>

#define XLOGF_FIRST_N(level, n, fmt, ...)

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.
fmtA folly::format-style format string for the message.