log_module.h File Reference

Log module to realize consistent log messages. More...

Detailed Description

Log module to realize consistent log messages.

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);
Informational log level, will print purely informational messages like successful system bootup...
Definition: log.h:58
Error log level, will print only critical, non-recoverable errors like hardware initialization failur...
Definition: log.h:53
Warning log level, will print warning messages for temporary errors.
Definition: log.h:56
Debug log level, printing developer stuff considered too verbose for production use.
Definition: log.h:61

Definition at line 38 of file log_module.h.