112e714ceSopenharmony_ci/*
212e714ceSopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd.
312e714ceSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
412e714ceSopenharmony_ci * you may not use this file except in compliance with the License.
512e714ceSopenharmony_ci * You may obtain a copy of the License at
612e714ceSopenharmony_ci *
712e714ceSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
812e714ceSopenharmony_ci *
912e714ceSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1012e714ceSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1112e714ceSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212e714ceSopenharmony_ci * See the License for the specific language governing permissions and
1312e714ceSopenharmony_ci * limitations under the License.
1412e714ceSopenharmony_ci */
1512e714ceSopenharmony_ci
1612e714ceSopenharmony_ci#ifndef NEURAL_NETWORK_RUNTIME_LOG_H
1712e714ceSopenharmony_ci#define NEURAL_NETWORK_RUNTIME_LOG_H
1812e714ceSopenharmony_ci
1912e714ceSopenharmony_ci#include <cstdarg>
2012e714ceSopenharmony_ci#include "hilog/log.h"
2112e714ceSopenharmony_ci
2212e714ceSopenharmony_ci#ifdef __cplusplus
2312e714ceSopenharmony_ciextern "C" {
2412e714ceSopenharmony_ci#endif
2512e714ceSopenharmony_ci
2612e714ceSopenharmony_ci#undef LOG_DOMAIN
2712e714ceSopenharmony_ci#define LOG_DOMAIN 0xD002101
2812e714ceSopenharmony_ci
2912e714ceSopenharmony_ci#undef LOG_TAG
3012e714ceSopenharmony_ci#define LOG_TAG "NNRt"
3112e714ceSopenharmony_ci
3212e714ceSopenharmony_ci#define LOGD(...) HILOG_DEBUG(LOG_CORE, __VA_ARGS__)
3312e714ceSopenharmony_ci#define LOGI(...) HILOG_INFO(LOG_CORE, __VA_ARGS__)
3412e714ceSopenharmony_ci#define LOGW(...) HILOG_WARN(LOG_CORE, __VA_ARGS__)
3512e714ceSopenharmony_ci#define LOGE(...) HILOG_ERROR(LOG_CORE, __VA_ARGS__)
3612e714ceSopenharmony_ci#define LOGF(...) HILOG_FATAL(LOG_CORE, __VA_ARGS__)
3712e714ceSopenharmony_ci
3812e714ceSopenharmony_ci#ifdef __cplusplus
3912e714ceSopenharmony_ci}
4012e714ceSopenharmony_ci#endif
4112e714ceSopenharmony_ci
4212e714ceSopenharmony_ci#endif // NEURAL_NETWORK_RUNTIME_LOG_H
43