1 /* 2 * Copyright (c) 2022 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 COMMON_NATIVE_INCLUDE_EDM_LOG_H 17 #define COMMON_NATIVE_INCLUDE_EDM_LOG_H 18 19 #include "hilog/log.h" 20 21 #ifndef LOG_DOMAIN_EDM 22 #define LOG_DOMAIN_EDM 0xD001E00 23 #endif 24 25 #ifndef LOG_TAG_EDM 26 #define LOG_TAG_EDM "EDM" 27 #endif 28 29 namespace OHOS { 30 namespace EDM { 31 32 #ifndef EDMLOGD 33 #define EDMLOGD(...) HILOG_IMPL(LOG_CORE, LOG_DEBUG, LOG_DOMAIN_EDM, LOG_TAG_EDM, __VA_ARGS__) 34 #endif 35 36 #ifndef EDMLOGE 37 #define EDMLOGE(...) HILOG_IMPL(LOG_CORE, LOG_ERROR, LOG_DOMAIN_EDM, LOG_TAG_EDM, __VA_ARGS__) 38 #endif 39 40 #ifndef EDMLOGF 41 #define EDMLOGF(...) HILOG_IMPL(LOG_CORE, LOG_FATAL, LOG_DOMAIN_EDM, LOG_TAG_EDM, __VA_ARGS__) 42 #endif 43 44 #ifndef EDMLOGI 45 #define EDMLOGI(...) HILOG_IMPL(LOG_CORE, LOG_INFO, LOG_DOMAIN_EDM, LOG_TAG_EDM, __VA_ARGS__) 46 #endif 47 48 #ifndef EDMLOGW 49 #define EDMLOGW(...) HILOG_IMPL(LOG_CORE, LOG_WARN, LOG_DOMAIN_EDM, LOG_TAG_EDM, __VA_ARGS__) 50 #endif 51 } // namespace EDM 52 } // namespace OHOS 53 #endif // COMMON_NATIVE_INCLUDE_EDM_LOG_H 54