2 * Application Service Platform(ASP)
4 * Copyright (c) 2015 Samsung Electronics Co., Ltd. All rights reserved.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
21 * This file declares macros for logging.
24 * @author Jiung Yu (jiung.yu.com)
35 #define LOG_TAG "CAPI_NETWORK_ASP"
37 #define ASP_LOGV(format, args...) LOGV(format, ##args)
38 #define ASP_LOGD(format, args...) LOGD(format, ##args)
39 #define ASP_LOGI(format, args...) LOGI(format, ##args)
40 #define ASP_LOGW(format, args...) LOGW(format, ##args)
41 #define ASP_LOGE(format, args...) LOGE(format, ##args)
42 #define ASP_LOGF(format, args...) LOGF(format, ##args)
44 #define ASP_SECLOGI(format, args...) SECURE_LOG(LOG_INFO, LOG_TAG, format, ##args)
45 #define ASP_SECLOGD(format, args...) SECURE_LOG(LOG_DEBUG, LOG_TAG, format, ##args)
47 #define __ASP_LOG_FUNC_START__ LOGV("Enter")
48 #define __ASP_LOG_FUNC_END__ LOGV("Quit")
50 #else /** _DLOG_UTIL */
52 #define ASP_LOGV(format, args...)
53 #define ASP_LOGD(format, args...)
54 #define ASP_LOGI(format, args...)
55 #define ASP_LOGW(format, args...)
56 #define ASP_LOGE(format, args...)
57 #define ASP_LOGF(format, args...)
59 #define __ASP_LOG_FUNC_START__
60 #define __ASP_LOG_FUNC_END__
62 #define ASP_SECLOGI(format, args...)
63 #define ASP_SECLOGD(format, args...)
65 #endif /** _DLOG_UTIL */
66 #endif /** __ASP_LOG_H__ */