136a3a8d0Sopenharmony_ci/*
236a3a8d0Sopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd.
336a3a8d0Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
436a3a8d0Sopenharmony_ci * you may not use this file except in compliance with the License.
536a3a8d0Sopenharmony_ci * You may obtain a copy of the License at
636a3a8d0Sopenharmony_ci *
736a3a8d0Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
836a3a8d0Sopenharmony_ci *
936a3a8d0Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1036a3a8d0Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1136a3a8d0Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1236a3a8d0Sopenharmony_ci * See the License for the specific language governing permissions and
1336a3a8d0Sopenharmony_ci * limitations under the License.
1436a3a8d0Sopenharmony_ci */
1536a3a8d0Sopenharmony_ci
1636a3a8d0Sopenharmony_ci#ifndef RESOURCE_MANAGER_LOG_H
1736a3a8d0Sopenharmony_ci#define RESOURCE_MANAGER_LOG_H
1836a3a8d0Sopenharmony_ci
1936a3a8d0Sopenharmony_ci#include "hilog/log.h"
2036a3a8d0Sopenharmony_ci
2136a3a8d0Sopenharmony_ci#undef LOG_DOMAIN
2236a3a8d0Sopenharmony_ci#undef LOG_TAG
2336a3a8d0Sopenharmony_ci#define LOG_DOMAIN 0xD002B25
2436a3a8d0Sopenharmony_ci#define LOG_TAG "ResourceManagerCffi"
2536a3a8d0Sopenharmony_ci
2636a3a8d0Sopenharmony_ci#define LOGI(...)                                       \
2736a3a8d0Sopenharmony_ci    if (HiLogIsLoggable(LOG_DOMAIN, LOG_TAG, LOG_INFO)) \
2836a3a8d0Sopenharmony_ci    {                                                   \
2936a3a8d0Sopenharmony_ci        HILOG_INFO(LOG_CORE, ##__VA_ARGS__);            \
3036a3a8d0Sopenharmony_ci    }
3136a3a8d0Sopenharmony_ci
3236a3a8d0Sopenharmony_ci#define LOGE(...)                                        \
3336a3a8d0Sopenharmony_ci    if (HiLogIsLoggable(LOG_DOMAIN, LOG_TAG, LOG_ERROR)) \
3436a3a8d0Sopenharmony_ci    {                                                    \
3536a3a8d0Sopenharmony_ci        HILOG_ERROR(LOG_CORE, __VA_ARGS__);              \
3636a3a8d0Sopenharmony_ci    }
3736a3a8d0Sopenharmony_ci
3836a3a8d0Sopenharmony_ci#endif
39