Loading...
Searching...
No Matches
log_module.h File Reference

Log module to realize consistent log messages for ESP SoCs. More...

Detailed Description

Log module to realize consistent log messages for ESP SoCs.

Author
Gunar Schorcht gunar.nosp@m.@sch.nosp@m.orcht.nosp@m..net

Definition in file log_module.h.

#include <stdio.h>
#include "esp_common_log.h"
+ Include dependency graph for log_module.h:

Go to the source code of this file.

#define log_write(level, ...)
 

Macro Definition Documentation

◆ log_write

#define log_write (   level,
  ... 
)
Value:
do { \
if (level == LOG_ERROR) { \
LOG_TAG(LOG_ERROR, E, __func__, ##__VA_ARGS__); \
} \
else if (level == LOG_WARNING) { \
LOG_TAG(LOG_WARNING, W, __func__, ##__VA_ARGS__); \
} \
else if (level == LOG_INFO) { \
LOG_TAG(LOG_INFO, D, __func__, ##__VA_ARGS__); \
} \
else if (level == LOG_DEBUG) { \
LOG_TAG(LOG_DEBUG, E, __func__, ##__VA_ARGS__); \
} \
} while (0U)
#define LOG_INFO(...)
for the curious
Definition log.h:94
#define LOG_DEBUG(...)
teach some ignorance
Definition log.h:95
#define LOG_ERROR(...)
log an error
Definition log.h:92
#define LOG_WARNING(...)
log a warning
Definition log.h:93

Definition at line 38 of file log_module.h.