Helpful logging and error format

Dependents:   Waldo_Embed_V2

Inspired by this blog post.

Work in Progress

Revision:
4:cf2ada8ed11b
Parent:
2:c54746c59ba4
Child:
6:163b9d47fa87
--- a/LogUtil.h	Wed Apr 10 06:18:50 2013 +0000
+++ b/LogUtil.h	Sun Apr 14 22:34:13 2013 +0000
@@ -25,6 +25,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include "mbed.h"
 
 #define STREAM      stdout
 #define LOG(...)    \
@@ -77,6 +78,7 @@
     /** Construct the LogUtil class and configure
      */
     LogUtil();
+    Serial debug;
     
 };