XLOG_EVERY_N_OR

Similar to XLOG(...) except it logs a message if the condition predicate evaluates to true or approximately every

Synopsis

Declared in <folly/logging/xlog.h>

#define XLOG_EVERY_N_OR(level, cond, n, ...)

Description

See concurrency discussion for XLOG_EVERY_N which applies here as well.

Parameters

NameDescription
ninvocations
levelThe folly::LogLevel value at which to log.
condA predicate; the message is logged when it is true.