11#define rdebugA(fmt, ...) \
12 if (Debug.isActive(Debug.ANY)) \
13 Serial.printf("(%s)(C%d) " fmt, __func__, xPortGetCoreID(), ##__VA_ARGS__)
14#define rdebugP(fmt, ...) \
15 if (Debug.isActive(Debug.PROFILER)) \
16 Serial.printf("(%s)(C%d) " fmt, __func__, xPortGetCoreID(), ##__VA_ARGS__)
17#define rdebugV(fmt, ...) \
18 if (Debug.isActive(Debug.VERBOSE)) \
19 Serial.printf("(%s)(C%d) " fmt, __func__, xPortGetCoreID(), ##__VA_ARGS__)
20#define rdebugD(fmt, ...) \
21 if (Debug.isActive(Debug.DEBUG)) \
22 Serial.printf("(%s)(C%d) " fmt, __func__, xPortGetCoreID(), ##__VA_ARGS__)
23#define rdebugI(fmt, ...) \
24 if (Debug.isActive(Debug.INFO)) \
25 Serial.printf("(%s)(C%d) " fmt, __func__, xPortGetCoreID(), ##__VA_ARGS__)
26#define rdebugW(fmt, ...) \
27 if (Debug.isActive(Debug.WARNING)) \
28 Serial.printf("(%s)(C%d) " fmt, __func__, xPortGetCoreID(), ##__VA_ARGS__)
29#define rdebugE(fmt, ...) \
30 if (Debug.isActive(Debug.ERROR)) \
31 Serial.printf("(%s)(C%d) " fmt, __func__, xPortGetCoreID(), ##__VA_ARGS__)
35#define rdebugAln(fmt, ...) rdebugA(fmt "\n", ##__VA_ARGS__)
36#define rdebugPln(fmt, ...) rdebugP(fmt "\n", ##__VA_ARGS__)
37#define rdebugVln(fmt, ...) rdebugV(fmt "\n", ##__VA_ARGS__)
38#define rdebugDln(fmt, ...) rdebugD(fmt "\n", ##__VA_ARGS__)
39#define rdebugIln(fmt, ...) rdebugI(fmt "\n", ##__VA_ARGS__)
40#define rdebugWln(fmt, ...) rdebugW(fmt "\n", ##__VA_ARGS__)
41#define rdebugEln(fmt, ...) rdebugE(fmt "\n", ##__VA_ARGS__)
46#define debugV(fmt, ...) rdebugVln(fmt, ##__VA_ARGS__)
47#define debugD(fmt, ...) rdebugDln(fmt, ##__VA_ARGS__)
48#define debugI(fmt, ...) rdebugIln(fmt, ##__VA_ARGS__)
49#define debugW(fmt, ...) rdebugWln(fmt, ##__VA_ARGS__)
50#define debugE(fmt, ...) rdebugEln(fmt, ##__VA_ARGS__)
51#define debugA(fmt, ...) rdebugVln(fmt, ##__VA_ARGS__)
void setSerialEnabled(bool enable)
static const uint8_t PROFILER
boolean isActive(uint8_t debugLevel=DEBUG)
static const uint8_t VERBOSE
void setResetCmdEnabled(bool enable)
static const uint8_t DEBUG
bool begin(String hostname, uint8_t startingDebugLevel=DEBUG)
static const uint8_t INFO
static const uint8_t WARNING
static const uint8_t ERROR