From 92870d304614b205bd900936a7da1cd85b8eafd5 Mon Sep 17 00:00:00 2001 From: mkhan Date: Mon, 7 Jan 2013 09:03:38 +1100 Subject: [PATCH] closes #10 FATAL log disable during compilation. --- README.md | 6 +++--- easylogging++.h | 8 ++++---- index.php | 2 +- samples/bin/many_logs.cpp.bin | Bin 30741 -> 34273 bytes samples/bin/time_tracker.cpp.bin | Bin 31037 -> 34429 bytes samples/bin/time_waster.cpp.bin | Bin 31051 -> 34453 bytes 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e5c5c3c95..23d228b33 100644 --- a/README.md +++ b/README.md @@ -184,13 +184,13 @@ To disable level specific log while compiling here are macros to define; * `_DISABLE_WARNING_LOGS` * `_DISABLE_ERROR_LOGS` * `_DISABLE_FATAL_LOGS` -* `_DISABLE_STATUS_LOGS` -* `_DISABLE_HINT_LOGS` +* `_DISABLE_STATUS` +* `_DISABLE_HINTS` * `_DISABLE_PERFORMANCE_LOGS` As an example if you wish to disable just debug and status logs while `_ENABLE_DEBUG_LOGS` and `_ENABLE_STATUS` is set to 1 in `easylogging++.h`, you may compile with following line; ``` -g++ main.cpp -o main-exec -D _DISABLE_DEBUG_LOGS -D _DISABLE_STATUS_LOGS +g++ main.cpp -o main-exec -D _DISABLE_DEBUG_LOGS -D _DISABLE_STATUS ``` This will disable debug logs and status updates in main-exec binary. diff --git a/easylogging++.h b/easylogging++.h index 7c123c30a..11f78b73f 100644 --- a/easylogging++.h +++ b/easylogging++.h @@ -1,7 +1,7 @@ /////////////////////////////////////////////////////////////////////////// // // // easylogging++.h - Core of EasyLogging++ // -// EasyLogging++ v3.15 // +// EasyLogging++ v3.16 // // Cross platform logging made easy for C++ applications // // Author Majid Khan // // http://www.icplusplus.com // @@ -168,8 +168,8 @@ const bool SHOW_START_FUNCTION_LOG = false; #define _WARNING_LOG ((_ENABLE_WARNING_LOGS) && !defined(_DISABLE_WARNING_LOGS)) #define _ERROR_LOG ((_ENABLE_ERROR_LOGS) && !defined(_DISABLE_ERROR_LOGS)) #define _PERFORMANCE_LOG ((_ENABLE_PERFORMANCE_LOGS) && !defined(_DISABLE_PERFORMANCE_LOGS)) -#define _STATUS_LOG ((_ENABLE_STATUS) && !defined(_DISABLE_STATUS_LOGS)) -#define _HINT_LOG ((_ENABLE_HINTS) && !defined(_DISABLE_HINT_LOGS)) +#define _STATUS_LOG ((_ENABLE_STATUS) && !defined(_DISABLE_STATUS)) +#define _HINT_LOG ((_ENABLE_HINTS) && !defined(_DISABLE_HINTS)) #define _FATAL_LOG ((_ENABLE_FATAL_LOGS) && !defined(_DISABLE_FATAL_LOGS)) // @@ -506,7 +506,7 @@ static void buildFormat(const char* func, const char* file, const unsigned long #else #define ERROR(x) #endif //_ERROR_LOG - #if _ENABLE_FATAL_LOGS + #if _FATAL_LOG #define FATAL(logStr) WRITE_LOG("FATAL",logStr) #else #define FATAL(x) diff --git a/index.php b/index.php index a6b31a99a..df491f29d 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,7 @@