added max-age and content-format

Fork of mbedConnectorInterface by Doug Anson

Revision:
5:a929d65eb385
Parent:
2:853f9ecc12df
Child:
16:383ad1356963
--- a/api/Logger.h	Wed Jan 28 12:11:22 2015 +0000
+++ b/api/Logger.h	Wed Jan 28 14:43:46 2015 +0000
@@ -32,6 +32,12 @@
 // Depends on use of BufferedSerial
 #include "BufferedSerial.h"
 
+// Configuration
+#include "mbedConnectorInterface.h"
+
+// logging macro
+#define log(x, ...)  logIt(x"\r\n",##__VA_ARGS__)
+
 /** Logger class
  */
 class Logger
@@ -55,11 +61,11 @@
     virtual ~Logger();
 
     /**
-    Log output
+    Log output to the given serial console
     @param format input format for the logging
     @param ... input (variable arguments to display)
     */
-    void log(const char *format, ...);
+    void logIt(const char *format, ...);
 protected:
 
 private: