1 /*
2 * Copyright (C) 2021 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
17 #include "hilog/log.h"
18 #include <cstdarg>
19 #include <cstdio>
20 #include <cstring>
21 #include <iostream>
22
23 namespace OHOS {
24 namespace HiviewDFX {
25 using namespace std;
Debug(const HiLogLabel & label,const char * fmt,...)26 int HiLog::Debug(const HiLogLabel &label, const char *fmt, ...)
27 {
28 return 0;
29 }
30
Info(const HiLogLabel & label,const char * fmt,...)31 int HiLog::Info(const HiLogLabel &label, const char *fmt, ...)
32 {
33 return 0;
34 }
35
Warn(const HiLogLabel & label,const char * fmt,...)36 int HiLog::Warn(const HiLogLabel &label, const char *fmt, ...)
37 {
38 std::cout << label.tag << ": " << fmt << std::endl;
39 return 0;
40 }
41
Error(const HiLogLabel & label,const char * fmt,...)42 int HiLog::Error(const HiLogLabel &label, const char *fmt, ...)
43 {
44 std::cout << label.tag << ": " << fmt << std::endl;
45 return 0;
46 }
47
Fatal(const HiLogLabel & label,const char * fmt,...)48 int HiLog::Fatal(const HiLogLabel &label, const char *fmt, ...)
49 {
50 std::cout << label.tag << ": " << fmt << std::endl;
51 return 0;
52 }
53 }
54 } // namespace OHOS