12ee81decSopenharmony_ci/*
22ee81decSopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd.
32ee81decSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
42ee81decSopenharmony_ci * you may not use this file except in compliance with the License.
52ee81decSopenharmony_ci * You may obtain a copy of the License at
62ee81decSopenharmony_ci *
72ee81decSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0
82ee81decSopenharmony_ci *
92ee81decSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
102ee81decSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
112ee81decSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
122ee81decSopenharmony_ci * See the License for the specific language governing permissions and
132ee81decSopenharmony_ci * limitations under the License.
142ee81decSopenharmony_ci */
152ee81decSopenharmony_ci
162ee81decSopenharmony_ci#ifndef SEC_UTILS_LOG_H
172ee81decSopenharmony_ci#define SEC_UTILS_LOG_H
182ee81decSopenharmony_ci
192ee81decSopenharmony_ci#include "hilog/log.h"
202ee81decSopenharmony_ci
212ee81decSopenharmony_ci#ifdef LOG_TAG
222ee81decSopenharmony_ci#undef LOG_TAG
232ee81decSopenharmony_ci#endif
242ee81decSopenharmony_ci#define LOG_TAG "DSLM_SERVICE"
252ee81decSopenharmony_ci
262ee81decSopenharmony_ci#ifdef LOG_DOMAIN
272ee81decSopenharmony_ci#undef LOG_DOMAIN
282ee81decSopenharmony_ci#endif
292ee81decSopenharmony_ci#define LOG_DOMAIN 0xD002F05
302ee81decSopenharmony_ci
312ee81decSopenharmony_ci#define SECURITY_LOG_DEBUG(fmt, ...) HILOG_DEBUG(LOG_CORE, "[%{public}s]:" fmt, __func__, ##__VA_ARGS__)
322ee81decSopenharmony_ci#define SECURITY_LOG_INFO(fmt, ...) HILOG_INFO(LOG_CORE, "[%{public}s]:" fmt, __func__, ##__VA_ARGS__)
332ee81decSopenharmony_ci#define SECURITY_LOG_WARN(fmt, ...) HILOG_WARN(LOG_CORE, "[%{public}s]:" fmt, __func__, ##__VA_ARGS__)
342ee81decSopenharmony_ci#define SECURITY_LOG_ERROR(fmt, ...) HILOG_ERROR(LOG_CORE, "[%{public}s]:" fmt, __func__, ##__VA_ARGS__)
352ee81decSopenharmony_ci#define SECURITY_LOG_FATAL(fmt, ...) HILOG_FATAL(LOG_CORE, "[%{public}s]:" fmt, __func__, ##__VA_ARGS__)
362ee81decSopenharmony_ci
372ee81decSopenharmony_ci#endif // SEC_UTILS_LOG_H
38