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 RME_LOG_DOMAIN_H 17 #define RME_LOG_DOMAIN_H 18 19 #undef LOG_DOMAIN 20 #define LOG_DOMAIN 0xD001706 21 22 #include <cstdint> 23 #include "hilog/log.h" 24 25 namespace OHOS { 26 namespace RmeLogDomain { 27 28 /* 29 #ifdef RME_LOGF 30 #undef RME_LOGF 31 #endif 32 33 #ifdef RME_LOGE 34 #undef RME_LOGE 35 #endif 36 37 #ifdef RME_LOGW 38 #undef RME_LOGW 39 #endif 40 41 #ifdef RME_LOGI 42 #undef RME_LOGI 43 #endif 44 45 #ifdef RME_LOGD 46 #undef RME_LOGD 47 #endif 48 */ 49 50 #define RME_LOGF(...) HILOG_FATAL(LOG_CORE, ##__VA_ARGS__) 51 #define RME_LOGE(...) HILOG_ERROR(LOG_CORE, ##__VA_ARGS__) 52 #define RME_LOGW(...) HILOG_WARN(LOG_CORE, ##__VA_ARGS__) 53 #define RME_LOGI(...) HILOG_INFO(LOG_CORE, ##__VA_ARGS__) 54 #define RME_LOGD(...) HILOG_DEBUG(LOG_CORE, ##__VA_ARGS__) 55 } // namespace RmeLogDomain 56 } // namespace OHOS 57 #endif // RME_LOG_DOMAIN_H 58