Add aaa-12 add ulog console

RCA:
SOL:
修改人:zhangtao
检视人:
This commit is contained in:
zhangtaohz 2019-07-26 11:55:22 +08:00
parent 311633a0ae
commit 122c24ab35
1 changed files with 5 additions and 1 deletions

View File

@ -1,13 +1,17 @@
#ifndef _ULOG_API_H
#define _ULOG_API_H
#include <syslog.h>
#include "common_types.h"
#define MAX_MODULE_NAME_SZ 16
typedef struct _ulog {
char module_name[MAX_MODULE_NAME_SZ];
} ulog_t;
ulog_t *ulog_init(const char *module_name);
ulog_t *ulog_init(const char *module_name, u8 is_print);
void ulog_close(ulog_t *log);
void ulog_record(const ulog_t *log, int level, const char *fmt, ...);