6#define LOGIT_SHORT_NAME
12 LOG_WPF(
"Attempt %d exceeded retry budget", attempt);
13 LOG_F(
"Triggering abort to demonstrate fatal logging");
25 double progress = 0.42;
26 LOG_I(
"Minimal setup ready");
27 LOG_IF(
"%.0f%% ready", progress * 100.0);
28 LOG_S_INFO() <<
"Streaming alias demo";
33 for (
int retry = 1; retry <= 3; ++retry) {
#define LOGIT_ERROR_THROTTLE(p,...)
#define LOGIT_ADD_CONSOLE_DEFAULT()
Macro for adding the default console logger.
#define LOGIT_WAIT()
Macro for waiting for all asynchronous loggers to finish processing.
#define LOGIT_SET_QUEUE_POLICY(mode)
Sets the behavior when the queue is full.
#define LOGIT_WARN_ONCE(...)
#define LOGIT_SET_MAX_QUEUE(size)
Sets the maximum number of queued tasks.
#define LOGIT_QUEUE_DROP
Backward-compatible alias for dropping the newest task.
Unified umbrella header for the LogIt++ library.
void crash_demo(int attempt)