LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
example_logit_queue_limit.cpp
Go to the documentation of this file.
1
3
4#include <logit.hpp>
5
6int main() {
10
11 for (int i = 0; i < 10; ++i) {
12 LOGIT_INFO("queue message", i);
13 }
14
15 LOGIT_WAIT();
17 return 0;
18}
#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_INFO(...)
#define LOGIT_SHUTDOWN()
Macro for shutting down logger system.
#define LOGIT_SET_QUEUE_POLICY(mode)
Sets the behavior when the queue is full.
#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.