rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | #ifndef __LYNQ_DEFLOG_H__
|
| 2 | #define __LYNQ_DEFLOG_H__
|
| 3 | #include "liblog.h"
|
| 4 |
|
| 5 | #ifdef __cplusplus |
| 6 | extern "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__ |