Helpful logging and error format
Inspired by this blog post.
Work in Progress
Diff: LogUtil.h
- Revision:
- 4:cf2ada8ed11b
- Parent:
- 2:c54746c59ba4
- Child:
- 6:163b9d47fa87
diff -r 9f20058284bd -r cf2ada8ed11b LogUtil.h --- 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; };