Files
waterlevel-software/src/tools/log.h
Tobias Maier 2fa4b0761b
Some checks failed
Test compiling project / test (push) Failing after 2m14s
FAR nicer logging
2025-03-20 22:33:22 +01:00

12 lines
357 B
C

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#define LOG(LEVEL, FMT, ...) \
do { \
logger.log(0, LEVEL, "[Core: %i][Task: %s][%s] " FMT, \
xPortGetCoreID(), \
pcTaskGetName(xTaskGetCurrentTaskHandle()), \
__FUNCTION__, \
##__VA_ARGS__); \
} while (0)