diff options
author | Disch, Simon <simon_disch@mentor.com> | 2016-03-07 09:44:48 +0100 |
---|---|---|
committer | Disch, Simon <simon_disch@mentor.com> | 2016-03-07 09:45:53 +0100 |
commit | 9345fac016a33c61175e4a06675c20d8590dc201 (patch) | |
tree | 0934ba12e33faf11cd807ec24ba55a4ec78cbe54 /include/CommonAPI/Logger.hpp | |
parent | 274ad1873235b333e1872ac98e7b382553fc7c8f (diff) | |
download | genivi-common-api-runtime-9345fac016a33c61175e4a06675c20d8590dc201.tar.gz |
CommonAPI 3.1.7
Diffstat (limited to 'include/CommonAPI/Logger.hpp')
-rw-r--r-- | include/CommonAPI/Logger.hpp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/include/CommonAPI/Logger.hpp b/include/CommonAPI/Logger.hpp index 3a5f0b0..71c4d23 100644 --- a/include/CommonAPI/Logger.hpp +++ b/include/CommonAPI/Logger.hpp @@ -18,21 +18,26 @@ #include <CommonAPI/Export.hpp> -#define COMMONAPI_LOGLEVEL_FATAL 0 -#define COMMONAPI_LOGLEVEL_ERROR 1 -#define COMMONAPI_LOGLEVEL_WARNING 2 -#define COMMONAPI_LOGLEVEL_INFO 3 -#define COMMONAPI_LOGLEVEL_DEBUG 4 -#define COMMONAPI_LOGLEVEL_VERBOSE 5 +#define COMMONAPI_LOGLEVEL_NONE 0 +#define COMMONAPI_LOGLEVEL_FATAL 1 +#define COMMONAPI_LOGLEVEL_ERROR 2 +#define COMMONAPI_LOGLEVEL_WARNING 3 +#define COMMONAPI_LOGLEVEL_INFO 4 +#define COMMONAPI_LOGLEVEL_DEBUG 5 +#define COMMONAPI_LOGLEVEL_VERBOSE 6 #ifndef COMMONAPI_LOGLEVEL -#define COMMONAPI_LOGLEVEL COMMONAPI_LOGLEVEL_INFO +#define COMMONAPI_LOGLEVEL COMMONAPI_LOGLEVEL_NONE #endif #ifdef WIN32 +#if COMMONAPI_LOGLEVEL >= COMMONAPI_LOGLEVEL_FATAL #define COMMONAPI_FATAL(...) \ do { Logger::log(Logger::Level::LL_FATAL, __VA_ARGS__); } while (false); +#else +#define COMMONAPI_FATAL(...) +#endif #if COMMONAPI_LOGLEVEL >= COMMONAPI_LOGLEVEL_ERROR #define COMMONAPI_ERROR(...) \ |