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.
Fork of LogIt by
serial_logger.h
00001 #pragma once 00002 00003 #include "LoggerInterface.h" 00004 #include "mbed.h" 00005 00006 namespace LogIt { 00007 00008 class SerialLogger : public Log::LoggerInterface 00009 { 00010 public: 00011 SerialLogger(Serial* serial); 00012 void emergency(const char * message, ...); 00013 void alert(const char * message, ...); 00014 void critical(const char * message, ...); 00015 void error(const char * message, ...); 00016 void warning(const char * message, ...); 00017 void notice(const char * message, ...); 00018 void info(const char * message, ...); 00019 void debug(const char * message, ...); 00020 void log(Level level, const char * message, ...); 00021 00022 void setLevel(Level level); 00023 00024 protected: 00025 Serial* serial; 00026 Level level; // minimum level to log 00027 00028 private: 00029 void log(Level level, const char * message, va_list args); 00030 }; 00031 00032 };
Generated on Thu Jul 14 2022 14:54:23 by
1.7.2
