13fc297bdSopenharmony_ci/* 23fc297bdSopenharmony_ci * Copyright (c) 2023-2024 Huawei Device Co., Ltd. 33fc297bdSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 43fc297bdSopenharmony_ci * you may not use this file except in compliance with the License. 53fc297bdSopenharmony_ci * You may obtain a copy of the License at 63fc297bdSopenharmony_ci * 73fc297bdSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 83fc297bdSopenharmony_ci * 93fc297bdSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 103fc297bdSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 113fc297bdSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 123fc297bdSopenharmony_ci * See the License for the specific language governing permissions and 133fc297bdSopenharmony_ci * limitations under the License. 143fc297bdSopenharmony_ci */ 153fc297bdSopenharmony_ci 163fc297bdSopenharmony_ci#ifndef SOC_PERF_COMMON_INCLUDE_SOCPERF_LOG_H 173fc297bdSopenharmony_ci#define SOC_PERF_COMMON_INCLUDE_SOCPERF_LOG_H 183fc297bdSopenharmony_ci 193fc297bdSopenharmony_ci#include "hilog/log.h" 203fc297bdSopenharmony_ci 213fc297bdSopenharmony_cinamespace OHOS { 223fc297bdSopenharmony_cinamespace SOCPERF { 233fc297bdSopenharmony_ci#undef LOG_DOMAIN 243fc297bdSopenharmony_ci#define LOG_DOMAIN 0xD001703 253fc297bdSopenharmony_ci 263fc297bdSopenharmony_ci#undef LOG_TAG 273fc297bdSopenharmony_ci#define LOG_TAG "socperf" 283fc297bdSopenharmony_ci 293fc297bdSopenharmony_ci#define SOC_PERF_LOGD(fmt, ...) HILOG_DEBUG(LOG_CORE, "[%{public}s]: " fmt, __FUNCTION__, ##__VA_ARGS__) 303fc297bdSopenharmony_ci#define SOC_PERF_LOGI(fmt, ...) HILOG_INFO(LOG_CORE, "[%{public}s]: " fmt, __FUNCTION__, ##__VA_ARGS__) 313fc297bdSopenharmony_ci#define SOC_PERF_LOGW(fmt, ...) HILOG_WARN(LOG_CORE, "[%{public}s]: " fmt, __FUNCTION__, ##__VA_ARGS__) 323fc297bdSopenharmony_ci#define SOC_PERF_LOGE(fmt, ...) HILOG_ERROR(LOG_CORE, "[%{public}s]: " fmt, __FUNCTION__, ##__VA_ARGS__) 333fc297bdSopenharmony_ci#define SOC_PERF_LOGF(fmt, ...) HILOG_FATAL(LOG_CORE, "[%{public}s]: " fmt, __FUNCTION__, ##__VA_ARGS__) 343fc297bdSopenharmony_ci} // namespace SOCPERF 353fc297bdSopenharmony_ci} // namespace OHOS 363fc297bdSopenharmony_ci 373fc297bdSopenharmony_ci#endif // SOC_PERF_COMMON_INCLUDE_SOCPERF_LOG_H 38