Log a message using a format string if and only if the specified condition predicate evaluates to true. Note that the condition is only evaluated if the log-level check passes.
Declared in <folly/logging/xlog.h>
#define XLOGF_IF(level, cond, fmt, ...)
| Name | Description |
|---|---|
| level | The folly::LogLevel value at which to log. |
| cond | A predicate; the message is logged only when it is true. |
| fmt | A folly::format-style format string for the message. |