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