#include <chrono>
#include <cstdio>
Go to the source code of this file.
|
#define | MLAB_LOG_COLOR_E "\033[0;31m" |
|
#define | MLAB_LOG_COLOR_W "\033[0;33m" |
|
#define | MLAB_LOG_COLOR_I "\033[0;32m" |
|
#define | MLAB_LOG_COLOR_D |
|
#define | MLAB_LOG_COLOR_V |
|
#define | MLAB_LOG_RESET_COLOR "\033[0m" |
|
#define | MLAB_LOG_FORMAT(letter, format) MLAB_LOG_COLOR_##letter #letter " (%u) %s: " format MLAB_LOG_RESET_COLOR "\n" |
|
#define | LOGE(tag, format, ...) do { std::printf((MLAB_LOG_FORMAT(E, format)), ::mlab::log_timestamp(), tag, ##__VA_ARGS__); } while (false) |
|
#define | LOGW(tag, format, ...) do { std::printf((MLAB_LOG_FORMAT(W, format)), ::mlab::log_timestamp(), tag, ##__VA_ARGS__); } while (false) |
|
#define | LOGI(tag, format, ...) do { std::printf((MLAB_LOG_FORMAT(I, format)), ::mlab::log_timestamp(), tag, ##__VA_ARGS__); } while (false) |
|
#define | LOGD(tag, format, ...) do { std::printf((MLAB_LOG_FORMAT(D, format)), ::mlab::log_timestamp(), tag, ##__VA_ARGS__); } while (false) |
|
#define | LOGV(tag, format, ...) do { std::printf((MLAB_LOG_FORMAT(V, format)), ::mlab::log_timestamp(), tag, ##__VA_ARGS__); } while (false) |
|
◆ LOGD
◆ LOGE
◆ LOGI
◆ LOGV
◆ LOGW
◆ MLAB_LOG_COLOR_D
◆ MLAB_LOG_COLOR_E
#define MLAB_LOG_COLOR_E "\033[0;31m" |
◆ MLAB_LOG_COLOR_I
#define MLAB_LOG_COLOR_I "\033[0;32m" |
◆ MLAB_LOG_COLOR_V
◆ MLAB_LOG_COLOR_W
#define MLAB_LOG_COLOR_W "\033[0;33m" |
◆ MLAB_LOG_FORMAT
#define MLAB_LOG_FORMAT |
( |
| letter, |
|
|
| format ) MLAB_LOG_COLOR_##letter #letter " (%u) %s: " format MLAB_LOG_RESET_COLOR "\n" |
◆ MLAB_LOG_RESET_COLOR
#define MLAB_LOG_RESET_COLOR "\033[0m" |