166f3657fSopenharmony_ci/* 266f3657fSopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd. 366f3657fSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 466f3657fSopenharmony_ci * you may not use this file except in compliance with the License. 566f3657fSopenharmony_ci * You may obtain a copy of the License at 666f3657fSopenharmony_ci * 766f3657fSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 866f3657fSopenharmony_ci * 966f3657fSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 1066f3657fSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 1166f3657fSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1266f3657fSopenharmony_ci * See the License for the specific language governing permissions and 1366f3657fSopenharmony_ci * limitations under the License. 1466f3657fSopenharmony_ci */ 1566f3657fSopenharmony_ci 1666f3657fSopenharmony_ci#ifndef OHOS_DSCREEN_LOG_H 1766f3657fSopenharmony_ci#define OHOS_DSCREEN_LOG_H 1866f3657fSopenharmony_ci 1966f3657fSopenharmony_ci#include <cinttypes> 2066f3657fSopenharmony_ci 2166f3657fSopenharmony_ci#include "hilog/log.h" 2266f3657fSopenharmony_ci#include <inttypes.h> 2366f3657fSopenharmony_ci 2466f3657fSopenharmony_cinamespace OHOS { 2566f3657fSopenharmony_cinamespace DistributedHardware { 2666f3657fSopenharmony_ci#undef LOG_TAG 2766f3657fSopenharmony_ci#define LOG_TAG "DSCREEN" 2866f3657fSopenharmony_ci 2966f3657fSopenharmony_ci#define DHLOGD(fmt, ...) HILOG_DEBUG(LOG_CORE, \ 3066f3657fSopenharmony_ci "[%{public}s][%{public}s]:" fmt, DH_LOG_TAG, __FUNCTION__, ##__VA_ARGS__) 3166f3657fSopenharmony_ci 3266f3657fSopenharmony_ci#define DHLOGI(fmt, ...) HILOG_INFO(LOG_CORE, \ 3366f3657fSopenharmony_ci "[%{public}s][%{public}s]:" fmt, DH_LOG_TAG, __FUNCTION__, ##__VA_ARGS__) 3466f3657fSopenharmony_ci 3566f3657fSopenharmony_ci#define DHLOGW(fmt, ...) HILOG_WARN(LOG_CORE, \ 3666f3657fSopenharmony_ci "[%{public}s][%{public}s]:" fmt, DH_LOG_TAG, __FUNCTION__, ##__VA_ARGS__) 3766f3657fSopenharmony_ci 3866f3657fSopenharmony_ci#define DHLOGE(fmt, ...) HILOG_ERROR(LOG_CORE, \ 3966f3657fSopenharmony_ci "[%{public}s][%{public}s]:" fmt, DH_LOG_TAG, __FUNCTION__, ##__VA_ARGS__) 4066f3657fSopenharmony_ci} // namespace DistributedHardware 4166f3657fSopenharmony_ci} // namespace OHOS 4266f3657fSopenharmony_ci#endif