blob: 578800d4cee7fe16684e4f793a7b44a610235bd2 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#ifndef __LYNQ_DEFLOG_H__
2#define __LYNQ_DEFLOG_H__
3#include "liblog.h"
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9#ifndef USER_LOG_TAG
10#define LYVERBLOG(X...) lynq_log_global_output(LOG_VERBOSE,X)
11#define LYERRLOG(X...) lynq_log_global_output(LOG_ERROR,X)
12#define LYWARNLOG(X...) lynq_log_global_output(LOG_WARNING,X)
13#define LYINFLOG(X...) lynq_log_global_output(LOG_INFO,X)
14#define LYDBGLOG(X...) lynq_log_global_output(LOG_DEBUG,X)
15#define LYLOGSET(a) lynq_log_configuration_set(USER_LOG_TAG,a)
16#define LYLOGEINIT(Y) lynq_log_configuration_init(Y)
17#else
18#define LYVERBLOG(X...)
19#define LYERRLOG(X...)
20#define LYWARNLOG(X...)
21#define LYINFLOG(X...)
22#define LYDBGLOG(X...)
23#define LYLOGSET(a)
24#define LYLOGEINIT(Y)
25#endif
26
27#ifdef __cplusplus
28}
29#endif
30
31#endif //__LYNQ_DEFLOG_H__