|
Arduino PulseWire Transceiver Library
|
Simple logger class for debugging and logging messages. More...
#include <Logger.h>
Public Types | |
| enum | LogLevel { LOG_LEVEL_NONE , LOG_LEVEL_ERROR , LOG_LEVEL_WARNING , LOG_LEVEL_INFO , LOG_LEVEL_DEBUG } |
Static Public Member Functions | |
| static void | setLogLevel (LogLevel level) |
| Set the global log level. | |
| static void | error (const char *format,...) |
| Log an error message with formatting. | |
| static void | warning (const char *format,...) |
| Log a warning message with formatting. | |
| static void | info (const char *format,...) |
| Log an informational message with formatting. | |
| static void | debug (const char *format,...) |
| Log a debug message with formatting. | |
| static void | setOutput (Print &print) |
| Set the Output object | |
Simple logger class for debugging and logging messages.
This class provides a lightweight logging utility for printing messages to the serial console. It supports different log levels and can be enabled or disabled globally. It also supports formatted messages using variadic arguments, similar to printf.