blob: 11a84f23c9698feb0b950f35ab872f2c82f4f62f [file] [log] [blame]
/**
@file
DSI_ConnectManager.h
@brief
This file provides the definitions for quectel log api, and declares the
API functions.
*/
/*============================================================================
Copyright (c) 2017 Quectel Wireless Solution, Co., Ltd. All Rights Reserved.
Quectel Wireless Solution Proprietary and Confidential.
=============================================================================*/
/*===========================================================================
EDIT HISTORY FOR MODULE
This section contains comments describing changes made to the module.
Notice that changes are listed in reverse chronological order.
WHEN WHO WHAT, WHERE, WHY
---------- ------------ ----------------------------------------------------
24/07/2019 Nebula.li create
=============================================================================*/
#ifndef _QL_LOG_H_
#define _QL_LOG_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <ql_sys_log.h>
#define QL_LOG_DEBUG(fmt, ...) do{ \
ql_sys_log_print(QL_SYS_LOG_ID_SYSTEM, QL_SYS_LOG_DEBUG, QL_SYS_LOG_TAG, "[%s_%d]:"fmt, __FUNCTION__, __LINE__, ##__VA_ARGS__);\
}while(0)
#define QL_LOG_INFO(fmt, ...) do{ \
ql_sys_log_print(QL_SYS_LOG_ID_SYSTEM, QL_SYS_LOG_INFO, QL_SYS_LOG_TAG, "[%s_%d]:"fmt, __FUNCTION__, __LINE__, ##__VA_ARGS__);\
}while(0)
#define QL_LOG_WARN(fmt, ...) do{ \
ql_sys_log_print(QL_SYS_LOG_ID_SYSTEM, QL_SYS_LOG_WARN, QL_SYS_LOG_TAG, "[%s_%d]:"fmt, __FUNCTION__, __LINE__, ##__VA_ARGS__);\
}while(0)
#define QL_LOG_ERROR(fmt, ...) do{ \
ql_sys_log_print(QL_SYS_LOG_ID_SYSTEM, QL_SYS_LOG_ERROR, QL_SYS_LOG_TAG, "[%s_%d]:"fmt, __FUNCTION__, __LINE__, ##__VA_ARGS__);\
}while(0)
#ifdef __cplusplus
}
#endif
#endif