XLOG_IF

Log a message if and only if the specified condition predicate evaluates to true. Note that the condition is only evaluated if the log-level check passes.

Synopsis

Declared in <folly/logging/xlog.h>

#define XLOG_IF(level, cond, ...)

Parameters

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