We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FB_LOG_EVERY_MS
Somtimes, it is more usefull to log every n ms. It is available in folly, why not support it in glog.
The text was updated successfully, but these errors were encountered:
It is supported in glog! You should use LOG_EVERY_T
LOG_EVERY_T
Here is an example with std::chrono_literals:
using namespace std::chrono_literals; LOG_EVERY_T(INFO, 123ms) << "Hello!";
If you don't want to use std::chrono_literals you can express duration as a fraction of a second: LOG_EVERY_T(INFO, 0.123) << "Hello!";
LOG_EVERY_T(INFO, 0.123) << "Hello!";
Sorry, something went wrong.
@Mivekk Thanks.
Indeed, this feature has been already implemented in #669 and is available since glog 0.6.0.
No branches or pull requests
Somtimes, it is more usefull to log every n ms. It is available in folly, why not support it in glog.
The text was updated successfully, but these errors were encountered: