You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
751 B
36 lines
751 B
/** \file app_log.h */
|
|
#if !defined(APP_LOG_H__AF0528EC_4FE9_42EF_A325_9764C6E25718__INCLUDED_)
|
|
#define APP_LOG_H__AF0528EC_4FE9_42EF_A325_9764C6E25718__INCLUDED_
|
|
|
|
#include "board_config.h"
|
|
|
|
typedef enum
|
|
{
|
|
LOG_LEVEL_NONE,
|
|
LOG_LEVEL_ERROR,
|
|
LOG_LEVEL_WARRING,
|
|
LOG_LEVEL_INFO,
|
|
LOG_LEVEL_DEBUG,
|
|
}LOG_LEVEL;
|
|
|
|
|
|
#ifdef DEBUG
|
|
#define dbg_printf(l, f, a...) \
|
|
do { \
|
|
App_Log_Prinf(l, __FUNCTION__, f, ## a); \
|
|
} while(0)
|
|
#else
|
|
#define Log(l, f, a ...) do {} while(0)
|
|
#endif
|
|
|
|
|
|
bool App_Log_Initialization(LOG_LEVEL level);
|
|
bool App_Log_Set_logLevel(LOG_LEVEL level);
|
|
LOG_LEVEL App_Lgo_Get_logLevel(void);
|
|
void App_Log_Prinf(LOG_LEVEL level, const char *func, const char *format, ...);
|
|
|
|
|
|
|
|
|
|
#endif
|