• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2025 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef COMMUNICATIONNETMANAGER_EXT_NETMANAGER_EXT_LOG
17 #define COMMUNICATIONNETMANAGER_EXT_NETMANAGER_EXT_LOG
18 
19 #include "netmanager_base_log.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #undef LOG_TAG
26 #ifndef NETMGR_LOG_TAG
27 #define LOG_TAG "NETMANAGER_EXT"
28 #else
29 #define LOG_TAG NETMGR_LOG_TAG
30 #endif
31 #undef LOG_DOMAIN
32 #define LOG_DOMAIN 0xD0015B0
33 
34 #define NETMANAGER_EXT_LOGE(fmt, ...) NETMANAGER_LOG(ERROR, fmt, ##__VA_ARGS__)
35 #define NETMANAGER_EXT_LOGI(fmt, ...) NETMANAGER_LOG(INFO, fmt, ##__VA_ARGS__)
36 
37 #define NETMGR_EXT_LOG_D(fmt, ...) NETMANAGER_LOG(DEBUG, fmt, ##__VA_ARGS__)
38 #define NETMGR_EXT_LOG_E(fmt, ...) NETMANAGER_LOG(ERROR, fmt, ##__VA_ARGS__)
39 #define NETMGR_EXT_LOG_W(fmt, ...) NETMANAGER_LOG(WARN, fmt, ##__VA_ARGS__)
40 #define NETMGR_EXT_LOG_I(fmt, ...) NETMANAGER_LOG(INFO, fmt, ##__VA_ARGS__)
41 #define NETMGR_EXT_LOG_F(fmt, ...) NETMANAGER_LOG(FATAL, fmt, ##__VA_ARGS__)
42 
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
48 #endif /* COMMUNICATIONNETMANAGER_EXT_NETMANAGER_EXT_LOG */
49