A common library used by Digi International Inc. mbed libraries to output debug information.

Dependents:   XBeeLib XBeeLib_Test Chi-XBee-Actuator Chi-XBee-Sensor ... more

A common library used by Digi International Inc. mbed libraries to output debug information.
Used by XBeeLib

See Debugging the library chapter for more info.

Revision:
5:58c5158b5120
Parent:
3:304026cffaf3
--- a/DigiLogger.cpp	Mon May 18 13:16:43 2015 +0200
+++ b/DigiLogger.cpp	Mon Jun 01 18:59:28 2015 +0200
@@ -25,13 +25,13 @@
 {
     _log_level = LogLevelNone;
 
-    current_logger = nullptr;
+    current_logger = NULL;
 }
 
 /* Class destructor */
 DigiLogger::~DigiLogger()
 {
-    current_logger = nullptr;
+    current_logger = NULL;
 }
 
 void DigiLogger::set_level(LogLevel log_level)
@@ -49,11 +49,13 @@
     static char buffer[DEBUG_BUFFER_LEN];
     va_list argp;
 
-    if (current_logger == nullptr)
+    if (current_logger == NULL) {
         return;
+    }
 
-    if (_log_level < log_level) 
+    if (_log_level < log_level) {
         return;
+    }
 
     va_start(argp, format);
     vsnprintf(buffer, DEBUG_BUFFER_LEN, format, argp);