HomeScreenBinding
|
#include <time.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
Go to the source code of this file.
Macros | |
#define | __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) |
#define | HMI_ERROR(prefix, args, ...) _HMI_LOG(LOG_LEVEL_ERROR, __FILENAME__, __FUNCTION__, __LINE__, prefix, args, ##__VA_ARGS__) |
#define | HMI_WARNING(prefix, args, ...) _HMI_LOG(LOG_LEVEL_WARNING, __FILENAME__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__) |
#define | HMI_NOTICE(prefix, args, ...) _HMI_LOG(LOG_LEVEL_NOTICE, __FILENAME__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__) |
#define | HMI_INFO(prefix, args, ...) _HMI_LOG(LOG_LEVEL_INFO, __FILENAME__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__) |
#define | HMI_DEBUG(prefix, args, ...) _HMI_LOG(LOG_LEVEL_DEBUG, __FILENAME__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__) |
Enumerations | |
enum | LOG_LEVEL { LOG_LEVEL_NONE = 0, LOG_LEVEL_ERROR, LOG_LEVEL_WARNING, LOG_LEVEL_NOTICE, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_MAX = LOG_LEVEL_DEBUG, LOG_LEVEL_NONE = 0, LOG_LEVEL_ERROR, LOG_LEVEL_WARNING, LOG_LEVEL_NOTICE, LOG_LEVEL_INFO, LOG_LEVEL_DEBUG, LOG_LEVEL_MAX = LOG_LEVEL_DEBUG } |
Functions | |
static void | _HMI_LOG (enum LOG_LEVEL level, const char *file, const char *func, const int line, const char *prefix, const char *log,...) |
Variables | |
static char | ERROR_FLAG [6][20] = {"NONE", "ERROR", "WARNING", "NOTICE", "INFO", "DEBUG"} |
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) |
Definition at line 40 of file hmi-debug.h.
#define HMI_DEBUG | ( | prefix, | |
args, | |||
... | |||
) | _HMI_LOG(LOG_LEVEL_DEBUG, __FILENAME__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__) |
Definition at line 46 of file hmi-debug.h.
#define HMI_ERROR | ( | prefix, | |
args, | |||
... | |||
) | _HMI_LOG(LOG_LEVEL_ERROR, __FILENAME__, __FUNCTION__, __LINE__, prefix, args, ##__VA_ARGS__) |
Definition at line 42 of file hmi-debug.h.
#define HMI_INFO | ( | prefix, | |
args, | |||
... | |||
) | _HMI_LOG(LOG_LEVEL_INFO, __FILENAME__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__) |
Definition at line 45 of file hmi-debug.h.
#define HMI_NOTICE | ( | prefix, | |
args, | |||
... | |||
) | _HMI_LOG(LOG_LEVEL_NOTICE, __FILENAME__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__) |
Definition at line 44 of file hmi-debug.h.
#define HMI_WARNING | ( | prefix, | |
args, | |||
... | |||
) | _HMI_LOG(LOG_LEVEL_WARNING, __FILENAME__, __FUNCTION__,__LINE__, prefix, args,##__VA_ARGS__) |
Definition at line 43 of file hmi-debug.h.
enum LOG_LEVEL |
Definition at line 30 of file hmi-debug.h.
|
static |
Definition at line 50 of file hmi-debug.h.
|
static |
Definition at line 48 of file hmi-debug.h.