Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Logger.h
- Revision:
- 0:cbc40e6ff273
- Child:
- 9:951b6b0bfdf8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Logger.h Wed Feb 27 21:07:55 2019 +0000
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <mbed.h>
+
+class Logger {
+public:
+ // constructor
+ Logger(bool logTimestamp);
+
+ // method called for printing a message, preprended with timestamp information if requested
+ void log(const char * format, ...);
+
+private:
+ bool m_logTimestamp;
+};