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

Name

Description

level

The folly::LogLevel value at which to log.

n

The number of initial invocations to log.

fmt

A folly::format‐style format string for the message.

Created with MrDocs