[#FB_LOG_EVERY_MS]
= FB&lowbar;LOG&lowbar;EVERY&lowbar;MS
:mrdocs:

Issues a LOG(severity) no more often than every milliseconds&period; Example&colon;

== Synopsis

Declared in `&lt;folly&sol;GLog&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
#define FB&lowbar;LOG&lowbar;EVERY&lowbar;MS(severity, milli&lowbar;interval)

----

== Description

FB&lowbar;LOG&lowbar;EVERY&lowbar;MS(INFO, 10000) &lt;&lt; &quot;At least ten seconds passed&quot; &quot; since you last saw this&period;&quot;&semi;

The implementation uses for statements to introduce variables in a nice way that doesn&apos;t mess surrounding statements&period; It is thread safe&period; Non&hyphen;positive intervals will always log&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *severity*
| The log severity level (e&period;g&period; INFO, WARNING, ERROR)&period;
| *milli&lowbar;interval*
| The minimum interval, in milliseconds, between logs&period;
|===


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