#include <string.h>
#include "ulog_config.h"
宏定义 | |
#define | ULOG_TAG __FILE__, __LINE__ |
#define | LOG_EMERG 0 /* system is unusable */ |
#define | LOG_ALERT 1 /* action must be taken immediately */ |
#define | LOG_CRIT 2 /* critical conditions */ |
#define | LOG_ERR 3 /* error conditions */ |
#define | LOG_WARNING 4 /* warning conditions */ |
#define | LOG_NOTICE 5 /* normal, but significant, condition */ |
#define | LOG_INFO 6 /* informational message */ |
#define | LOG_DEBUG 7 /* debug-level message */ |
#define | LOG_NONE 8 /* used in stop filter, all log will pop out */ |
#define | LOG(...) ulog(LOG_ALERT, "AOS", ULOG_TAG, __VA_ARGS__) |
#define | LOGF(mod, ...) ulog(LOG_CRIT, mod, ULOG_TAG, __VA_ARGS__) |
#define | LOGE(mod, ...) ulog(LOG_ERR, mod, ULOG_TAG, __VA_ARGS__) |
#define | LOGW(mod, ...) ulog(LOG_WARNING, mod, ULOG_TAG, __VA_ARGS__) |
#define | LOGI(mod, ...) ulog(LOG_INFO, mod, ULOG_TAG, __VA_ARGS__) |
#define | LOGD(mod, ...) |
枚举 | |
enum | aos_log_level_t { AOS_LL_NONE = LOG_EMERG , AOS_LL_FATAL = LOG_CRIT , AOS_LL_ERROR = LOG_ERR , AOS_LL_WARN = LOG_WARNING , AOS_LL_INFO = LOG_INFO , AOS_LL_DEBUG = LOG_DEBUG } |
函数 | |
int | ulog (const unsigned char s, const char *mod, const char *f, const unsigned long l, const char *fmt,...) |
int | aos_set_log_level (aos_log_level_t log_level) |
int | aos_set_log_output (void(*output_func)(const char *fmt,...)) |
void | ulog_init (void) |
int | ulog_man (const char *cmd_str) |
int | aos_get_ulog_list (char *buf, const unsigned short len) |
int | aos_log_hexdump (const char *tag, char *buffer, int len) |
在文件 ulog.h 中定义.