HPM APP
HPMicro Application solution
monitor_log.h File Reference
#include <stdio.h>
#include "monitor_kconfig.h"

Go to the source code of this file.

Macros

#define MONITOR_DBG_ERROR   0
 
#define MONITOR_DBG_WARNING   1
 
#define MONITOR_DBG_INFO   2
 
#define MONITOR_DBG_LOG   3
 
#define MONITOR_DBG_TAG   "MONITOR"
 
#define monitor_dbg_log_line(lvl, color_n, fmt, ...)
 
#define MONITOR_LOG_DBG(...)
 
#define MONITOR_LOG_INFO(fmt, ...)   monitor_dbg_log_line("I", 32, fmt, ##__VA_ARGS__)
 
#define MONITOR_LOG_WRN(fmt, ...)   monitor_dbg_log_line("W", 33, fmt, ##__VA_ARGS__)
 
#define MONITOR_LOG_ERR(fmt, ...)   monitor_dbg_log_line("E", 31, fmt, ##__VA_ARGS__)
 
#define MONITOR_LOG_RAW(...)
 

Macro Definition Documentation

◆ MONITOR_DBG_ERROR

#define MONITOR_DBG_ERROR   0

◆ MONITOR_DBG_INFO

#define MONITOR_DBG_INFO   2

◆ MONITOR_DBG_LOG

#define MONITOR_DBG_LOG   3

◆ monitor_dbg_log_line

#define monitor_dbg_log_line (   lvl,
  color_n,
  fmt,
  ... 
)
Value:
do { \
_MONITOR_DBG_LOG_HDR(lvl, color_n); \
CONFIG_MONITOR_PRINTF(fmt, ##__VA_ARGS__); \
_MONITOR_DBG_LOG_X_END; \
} while (0)

◆ MONITOR_DBG_TAG

#define MONITOR_DBG_TAG   "MONITOR"

◆ MONITOR_DBG_WARNING

#define MONITOR_DBG_WARNING   1

◆ MONITOR_LOG_DBG

#define MONITOR_LOG_DBG (   ...)

◆ MONITOR_LOG_ERR

#define MONITOR_LOG_ERR (   fmt,
  ... 
)    monitor_dbg_log_line("E", 31, fmt, ##__VA_ARGS__)

◆ MONITOR_LOG_INFO

#define MONITOR_LOG_INFO (   fmt,
  ... 
)    monitor_dbg_log_line("I", 32, fmt, ##__VA_ARGS__)

◆ MONITOR_LOG_RAW

#define MONITOR_LOG_RAW (   ...)

◆ MONITOR_LOG_WRN

#define MONITOR_LOG_WRN (   fmt,
  ... 
)    monitor_dbg_log_line("W", 33, fmt, ##__VA_ARGS__)