1be168c0dSopenharmony_ci/* 2be168c0dSopenharmony_ci * Copyright (c) 2023 Huawei Device Co., Ltd. 3be168c0dSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 4be168c0dSopenharmony_ci * you may not use this file except in compliance with the License. 5be168c0dSopenharmony_ci * You may obtain a copy of the License at 6be168c0dSopenharmony_ci * 7be168c0dSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 8be168c0dSopenharmony_ci * 9be168c0dSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 10be168c0dSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 11be168c0dSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12be168c0dSopenharmony_ci * See the License for the specific language governing permissions and 13be168c0dSopenharmony_ci * limitations under the License. 14be168c0dSopenharmony_ci */ 15be168c0dSopenharmony_ci 16be168c0dSopenharmony_ci#ifndef OHOS_MINDSPORE_TEST_LOG_H 17be168c0dSopenharmony_ci#define OHOS_MINDSPORE_TEST_LOG_H 18be168c0dSopenharmony_ci 19be168c0dSopenharmony_ci#include <cstdarg> 20be168c0dSopenharmony_ci#include "hilog/log_c.h" 21be168c0dSopenharmony_ci 22be168c0dSopenharmony_ci#ifdef __cplusplus 23be168c0dSopenharmony_ciextern "C" { 24be168c0dSopenharmony_ci#endif 25be168c0dSopenharmony_ci 26be168c0dSopenharmony_ciconstexpr unsigned int MSLITE_LOG_DOMAIN = 0xD002100; 27be168c0dSopenharmony_ci 28be168c0dSopenharmony_ci#define LOGD(...) HiLogPrint(LOG_CORE, LOG_DEBUG, MSLITE_LOG_DOMAIN, "MS_LITE", __VA_ARGS__) 29be168c0dSopenharmony_ci#define LOGI(...) HiLogPrint(LOG_CORE, LOG_INFO, MSLITE_LOG_DOMAIN, "MS_LITE", __VA_ARGS__) 30be168c0dSopenharmony_ci#define LOGW(...) HiLogPrint(LOG_CORE, LOG_WARN, MSLITE_LOG_DOMAIN, "MS_LITE", __VA_ARGS__) 31be168c0dSopenharmony_ci#define LOGE(...) HiLogPrint(LOG_CORE, LOG_ERROR, MSLITE_LOG_DOMAIN, "MS_LITE", __VA_ARGS__) 32be168c0dSopenharmony_ci#define LOGF(...) HiLogPrint(LOG_CORE, LOG_FATAL, MSLITE_LOG_DOMAIN, "MS_LITE", __VA_ARGS__) 33be168c0dSopenharmony_ci 34be168c0dSopenharmony_ci#ifdef __cplusplus 35be168c0dSopenharmony_ci} 36be168c0dSopenharmony_ci#endif 37be168c0dSopenharmony_ci 38be168c0dSopenharmony_ci#endif //OHOS_MINDSPORE_TEST_LOG_H 39