Logging improvements and C++23 (#206)

- 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)
This commit is contained in:
Ken Van Hoeylandt
2025-02-06 22:55:51 +01:00
committed by GitHub
parent 6337458992
commit 88b3bfbe3e
13 changed files with 175 additions and 164 deletions
+18
View File
@@ -0,0 +1,18 @@
#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