Helpful logging and error format

Dependents:   Waldo_Embed_V2

Inspired by this blog post.

Work in Progress

Revision:
4:cf2ada8ed11b
Parent:
3:9f20058284bd
Child:
7:ef45bd2cd9bb
--- a/LogUtil.cpp	Wed Apr 10 06:18:50 2013 +0000
+++ b/LogUtil.cpp	Sun Apr 14 22:34:13 2013 +0000
@@ -23,9 +23,8 @@
  #include "LogUtil.h"
  #include "mbed.h"
  
- LogUtil::LogUtil()
+ LogUtil::LogUtil() : debug(USBTX, USBRX)
  {
-    Serial debug(USBTX, USBRX);
     debug.baud(921600);
     debug.printf("\033[2J");  // clear the terminal
     debug.printf("\033[1;1H");// and set the cursor to home
@@ -33,4 +32,5 @@
     return;
  }
  
+ 
  
\ No newline at end of file