Initial merge-commit of the OIC code. Should successfully do discovery for single...
[platform/upstream/iotivity.git] / csdk / controller / core / include / core / SimpleLogger.h
1 //******************************************************************
2 //
3 // Copyright 2014 Intel Corporation All Rights Reserved.
4 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
5
6 #ifndef LOGGER_H_
7 #define LOGGER_H_
8
9 #include <stdint.h>
10 #include <stdio.h>
11 #include <stdarg.h>
12
13 namespace Intel {
14 namespace CCFL {
15
16 void logDebug(const char * tag, const char * format, ...);
17 void logInfo(const char * tag, const char * format, ...);
18 void logWarn(const char * tag, const char * format, ...);
19 void logError(const char * tag, const char * format, ...);
20 void logFatal(const char * tag, const char * format, ...);
21
22
23 //#ifndef NDEBUG
24 //#if 0
25 //      #ifdef __linux__
26 //              #include <stdio.h>
27 //              #define LOG(...) printf(__VA_ARGS__); printf("\n");
28 //      #elif __ANDROID__
29 //              #include <android/log.h>
30 //              #define LOG(...) _android_log_print(ANDROID_LOG_INFO, "LOG_TAG", __VA_ARGS__);
31 //      #elif _WIN64
32 //              #define LOG(...)
33 //      #elif _WIN32
34 //              #define LOG(...)
35 //      #elif __APPLE__
36 //              #define LOG(...)
37 //      #else
38 //      #endif
39 //#else
40 //      #define LOG(...)
41 //#endif
42
43 }
44 }
45
46 #endif /* LOGGER_H_ */