Merge "Partial Implementation of US1574:"
[platform/upstream/iotivity.git] / csdk / controller / core / include / core / SimpleLogger.h
1 //******************************************************************
2 //
3 // Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
4 //
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 //
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
10 //
11 //      http://www.apache.org/licenses/LICENSE-2.0
12 //
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
18 //
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20
21 #ifndef LOGGER_H_
22 #define LOGGER_H_
23
24 #include <stdint.h>
25 #include <stdio.h>
26 #include <stdarg.h>
27
28 namespace Intel {
29 namespace CCFL {
30
31 void logDebug(const char * tag, const char * format, ...);
32 void logInfo(const char * tag, const char * format, ...);
33 void logWarn(const char * tag, const char * format, ...);
34 void logError(const char * tag, const char * format, ...);
35 void logFatal(const char * tag, const char * format, ...);
36
37
38 //#ifndef NDEBUG
39 //#if 0
40 //      #ifdef __linux__
41 //              #include <stdio.h>
42 //              #define LOG(...) printf(__VA_ARGS__); printf("\n");
43 //      #elif __ANDROID__
44 //              #include <android/log.h>
45 //              #define LOG(...) _android_log_print(ANDROID_LOG_INFO, "LOG_TAG", __VA_ARGS__);
46 //      #elif _WIN64
47 //              #define LOG(...)
48 //      #elif _WIN32
49 //              #define LOG(...)
50 //      #elif __APPLE__
51 //              #define LOG(...)
52 //      #else
53 //      #endif
54 //#else
55 //      #define LOG(...)
56 //#endif
57
58 }
59 }
60
61 #endif /* LOGGER_H_ */