• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef COMMON_NATIVE_INCLUDE_EDM_LOG_H
17 #define COMMON_NATIVE_INCLUDE_EDM_LOG_H
18 
19 #include "errors.h"
20 #include "hilog/log.h"
21 
22 namespace OHOS {
23 namespace EDM {
24 static constexpr int LOG_DOMAIN_ID_EDM = 0xD001E00;
25 static constexpr OHOS::HiviewDFX::HiLogLabel EDM_LABEL = { LOG_CORE, LOG_DOMAIN_ID_EDM, "EDM" };
26 #ifndef EDMLOGD
27 #define EDMLOGD(...) (void)OHOS::HiviewDFX::HiLog::Debug(EDM_LABEL, __VA_ARGS__)
28 #endif
29 
30 #ifndef EDMLOGE
31 #define EDMLOGE(...) (void)OHOS::HiviewDFX::HiLog::Error(EDM_LABEL, __VA_ARGS__)
32 #endif
33 
34 #ifndef EDMLOGF
35 #define EDMLOGF(...) (void)OHOS::HiviewDFX::HiLog::Fatal(EDM_LABEL, __VA_ARGS__)
36 #endif
37 
38 #ifndef EDMLOGI
39 #define EDMLOGI(...) (void)OHOS::HiviewDFX::HiLog::Info(EDM_LABEL, __VA_ARGS__)
40 #endif
41 
42 #ifndef EDMLOGW
43 #define EDMLOGW(...) (void)OHOS::HiviewDFX::HiLog::Warn(EDM_LABEL, __VA_ARGS__)
44 #endif
45 } // namespace EDM
46 } // namespace OHOS
47 #endif // COMMON_NATIVE_INCLUDE_EDM_LOG_H
48