13c3173acSopenharmony_ci/*
23c3173acSopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd.
33c3173acSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
43c3173acSopenharmony_ci * you may not use this file except in compliance with the License.
53c3173acSopenharmony_ci * You may obtain a copy of the License at
63c3173acSopenharmony_ci *
73c3173acSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
83c3173acSopenharmony_ci *
93c3173acSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
103c3173acSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
113c3173acSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
123c3173acSopenharmony_ci * See the License for the specific language governing permissions and
133c3173acSopenharmony_ci * limitations under the License.
143c3173acSopenharmony_ci */
153c3173acSopenharmony_ci
163c3173acSopenharmony_ci#ifndef CONCURRENT_TASK_COMMON_INCLUDE_CONCURRENT_TASK_LOG_H
173c3173acSopenharmony_ci#define CONCURRENT_TASK_COMMON_INCLUDE_CONCURRENT_TASK_LOG_H
183c3173acSopenharmony_ci
193c3173acSopenharmony_ci#include "hilog/log.h"
203c3173acSopenharmony_ci
213c3173acSopenharmony_cinamespace OHOS {
223c3173acSopenharmony_cinamespace ConcurrentTask {
233c3173acSopenharmony_ci
243c3173acSopenharmony_ci#undef LOG_DOMAIN
253c3173acSopenharmony_ci#define LOG_DOMAIN 0xD001707
263c3173acSopenharmony_ci
273c3173acSopenharmony_ci#undef LOG_TAG
283c3173acSopenharmony_ci#define LOG_TAG "CONCUR"
293c3173acSopenharmony_ci
303c3173acSopenharmony_ci#define CONCUR_LOGF(...) (void)HILOG_FATAL(LOG_CORE, __VA_ARGS__)
313c3173acSopenharmony_ci#define CONCUR_LOGE(...) (void)HILOG_ERROR(LOG_CORE, __VA_ARGS__)
323c3173acSopenharmony_ci#define CONCUR_LOGW(...) (void)HILOG_WARN(LOG_CORE, __VA_ARGS__)
333c3173acSopenharmony_ci#define CONCUR_LOGI(...) (void)HILOG_INFO(LOG_CORE, __VA_ARGS__)
343c3173acSopenharmony_ci#define CONCUR_LOGD(...) (void)HILOG_DEBUG(LOG_CORE, __VA_ARGS__)
353c3173acSopenharmony_ci} // namespace ConcurrentTask
363c3173acSopenharmony_ci} // namespace OHOS
373c3173acSopenharmony_ci
383c3173acSopenharmony_ci#endif // CONCURRENT_TASK
39