[#XLOGF_FIRST_N]
= XLOGF&lowbar;FIRST&lowbar;N
:mrdocs:

Similar to XLOGF(&period;&period;&period;) except only log a message the first n times, exactly&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define XLOGF&lowbar;FIRST&lowbar;N(level, n, fmt, ...)

----

== Description

The internal counter is process&hyphen;global and threadsafe and exchanges are atomic&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *level*
| The `folly&colon;&colon;LogLevel` value at which to log&period;
| *n*
| The number of initial invocations to log&period;
| *fmt*
| A `folly&colon;&colon;format`&hyphen;style format string for the message&period;
|===


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