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

Name

Description

level

The folly::LogLevel value at which to log.

n

The number of initial invocations to log.

Created with MrDocs