Serial output logger based on the LoggerInterface
Diff: LogIt.h
- Revision:
- 0:0c84a9b17408
- Child:
- 1:5c3eeae51c21
- Child:
- 2:332adc3a2ae6
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LogIt.h Thu Nov 24 14:26:03 2016 +0000 @@ -0,0 +1,23 @@ +#include "LoggerInterface.h" +#include "mbed.h" + +class LogIt : public Log::LoggerInterface +{ + public: + LogIt(Serial* serial); + void emergency(char* message, ...); + void alert(char* message, ...); + void critical(char* message, ...); + void error(char* message, ...); + void warning(char* message, ...); + void notice(char* message, ...); + void info(char* message, ...); + void debug(char* message, ...); + void log(Level level, char* message, ...); + + void setLevel(Level level); + + protected: + Serial* serial; + Level level; // minimum level to log +}; \ No newline at end of file