arduino-emulator
|
A simple Logger that writes messages dependent on the log level. More...
#include <ArduinoLogger.h>
Public Types | |
enum | LogLevel { Debug , Info , Warning , Error } |
Supported log levels. | |
Public Member Functions | |
void | begin (Stream &out, LogLevel level=Warning) |
void | debug (const char *str, const char *str1=nullptr, const char *str2=nullptr) |
void | error (const char *str, const char *str1=nullptr, const char *str2=nullptr) |
void | info (const char *str, const char *str1=nullptr, const char *str2=nullptr) |
bool | isLogging () |
void | log (LogLevel current_level, const char *str, const char *str1=nullptr, const char *str2=nullptr) |
void | warning (const char *str, const char *str1=nullptr, const char *str2=nullptr) |
Public Attributes | |
const char * | LogLevelTxt [4] = {"Debug", "Info", "Warning", "Error"} |
Protected Attributes | |
LogLevel | log_level = Warning |
Stream * | log_stream_ptr = &Serial |
A simple Logger that writes messages dependent on the log level.