b.liu | d440f9f | 2025-04-18 10:44:31 +0800 | [diff] [blame] | 1 | /** |
| 2 | @file |
| 3 | DSI_ConnectManager.h |
| 4 | |
| 5 | @brief |
| 6 | This file provides the definitions for quectel log api, and declares the |
| 7 | API functions. |
| 8 | |
| 9 | */ |
| 10 | /*============================================================================ |
| 11 | Copyright (c) 2017 Quectel Wireless Solution, Co., Ltd. All Rights Reserved. |
| 12 | Quectel Wireless Solution Proprietary and Confidential. |
| 13 | =============================================================================*/ |
| 14 | /*=========================================================================== |
| 15 | |
| 16 | EDIT HISTORY FOR MODULE |
| 17 | |
| 18 | This section contains comments describing changes made to the module. |
| 19 | Notice that changes are listed in reverse chronological order. |
| 20 | |
| 21 | |
| 22 | WHEN WHO WHAT, WHERE, WHY |
| 23 | ---------- ------------ ---------------------------------------------------- |
| 24 | 24/07/2019 Nebula.li create |
| 25 | =============================================================================*/ |
| 26 | |
| 27 | #ifndef _QL_LOG_H_ |
| 28 | #define _QL_LOG_H_ |
| 29 | |
| 30 | #ifdef __cplusplus |
| 31 | extern "C" { |
| 32 | #endif |
| 33 | |
| 34 | #include <ql_sys_log.h> |
| 35 | |
| 36 | #define QL_LOG_DEBUG(fmt, ...) do{ \ |
| 37 | ql_sys_log_print(QL_SYS_LOG_ID_SYSTEM, QL_SYS_LOG_DEBUG, QL_SYS_LOG_TAG, "[%s_%d]:"fmt, __FUNCTION__, __LINE__, ##__VA_ARGS__);\ |
| 38 | }while(0) |
| 39 | |
| 40 | #define QL_LOG_INFO(fmt, ...) do{ \ |
| 41 | ql_sys_log_print(QL_SYS_LOG_ID_SYSTEM, QL_SYS_LOG_INFO, QL_SYS_LOG_TAG, "[%s_%d]:"fmt, __FUNCTION__, __LINE__, ##__VA_ARGS__);\ |
| 42 | }while(0) |
| 43 | |
| 44 | #define QL_LOG_WARN(fmt, ...) do{ \ |
| 45 | ql_sys_log_print(QL_SYS_LOG_ID_SYSTEM, QL_SYS_LOG_WARN, QL_SYS_LOG_TAG, "[%s_%d]:"fmt, __FUNCTION__, __LINE__, ##__VA_ARGS__);\ |
| 46 | }while(0) |
| 47 | |
| 48 | #define QL_LOG_ERROR(fmt, ...) do{ \ |
| 49 | ql_sys_log_print(QL_SYS_LOG_ID_SYSTEM, QL_SYS_LOG_ERROR, QL_SYS_LOG_TAG, "[%s_%d]:"fmt, __FUNCTION__, __LINE__, ##__VA_ARGS__);\ |
| 50 | }while(0) |
| 51 | |
| 52 | #ifdef __cplusplus |
| 53 | } |
| 54 | #endif |
| 55 | |
| 56 | #endif |