#include <debug.h>
Definition at line 272 of file debug.h.
◆ Logger()
◆ ~Logger()
◆ Get()
| std::ostream & Logger::Get |
( |
| ) |
|
|
inline |
◆ log_msg_once
| void log_msg_once |
( |
int | level, |
|
|
uint32_t | id, |
|
|
const char * | msg, |
|
|
| ... ) |
|
friend |
Definition at line 137 of file debug.cpp.
137 {
139 return;
140 }
141 static volatile uint32_t oneshot_messages[10];
142 static atomic<size_t> oneshot_messages_cnt;
143 for (size_t i = 0; i < oneshot_messages_cnt; ++i) {
144 if (oneshot_messages[i] == id) {
145 return;
146 }
147 }
148
149 va_list aq;
152 va_end(aq);
153
154 size_t last_cnt = oneshot_messages_cnt.fetch_add(1);
155 if (last_cnt < sizeof oneshot_messages / sizeof oneshot_messages[0]) {
156 oneshot_messages[last_cnt] = id;
157 } else {
159 }
160}
static void log_vprintf(int level, const char *format, va_list ap)
void log_msg(int log_level, const char *format,...) __attribute__((format(printf
#define LOG_LEVEL_WARNING
less severe errors
◆ level
◆ oss
| std::ostringstream Logger::oss |
|
private |
The documentation for this class was generated from the following file: