- Improved logging code by splitting functionality up into different files - Set C++23 as new standard (it was already the implied standard due to some code, but now it's explicit)
19 lines
471 B
C
19 lines
471 B
C
#pragma once
|
|
|
|
#ifdef ESP_PLATFORM
|
|
|
|
#include <esp_log.h>
|
|
|
|
#define TT_LOG_E(tag, format, ...) \
|
|
ESP_LOGE(tag, format, ##__VA_ARGS__)
|
|
#define TT_LOG_W(tag, format, ...) \
|
|
ESP_LOGW(tag, format, ##__VA_ARGS__)
|
|
#define TT_LOG_I(tag, format, ...) \
|
|
ESP_LOGI(tag, format, ##__VA_ARGS__)
|
|
#define TT_LOG_D(tag, format, ...) \
|
|
ESP_LOGD(tag, format, ##__VA_ARGS__)
|
|
#define TT_LOG_V(tag, format, ...) \
|
|
ESP_LOGV(tag, format, ##__VA_ARGS__)
|
|
|
|
#endif // ESP_PLATFORM
|