[#XLOG_IF]
= XLOG&lowbar;IF
:mrdocs:

Log a message if and only if the specified condition predicate evaluates to true&period; Note that the condition is _only_ evaluated if the log&hyphen;level check passes&period;

== Synopsis

Declared in `&lt;folly&sol;logging&sol;xlog&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define XLOG&lowbar;IF(level, cond, ...)

----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *level*
| The `folly&colon;&colon;LogLevel` value at which to log&period;
| *cond*
| A predicate&semi; the message is logged only when it is true&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
