A simple Logger that writes messages dependent on the log level.
More...
#include <ArduinoLogger.h>
|
| enum | LogLevel { Debug
, Info
, Warning
, Error
} |
| | Supported log levels.
|
|
|
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) |
|
|
const char * | LogLevelTxt [4] = {"Debug", "Info", "Warning", "Error"} |
|
|
LogLevel | log_level = Warning |
|
Stream * | log_stream_ptr = &Serial |
A simple Logger that writes messages dependent on the log level.
The documentation for this class was generated from the following file: