|
RF24Log
0.1.3
Unified logging library
|
An abstract base class for handling log messages. More...
#include <AbstractHandler.h>
Public Member Functions | |
| RF24LogAbstractHandler () | |
| Sets log level to INFO upon instantiation. | |
| void | log (uint8_t logLevel, const char *vendorId, const char *message, va_list *args) |
| log a message. More... | |
| void | setLogLevel (uint8_t logLevel) |
Protected Member Functions | |
| virtual void | write (uint8_t logLevel, const char *vendorId, const char *message, va_list *args)=0 |
Protected Attributes | |
| uint8_t | _logLevel |
An abstract base class for handling log messages.
Definition at line 33 of file AbstractHandler.h.
|
virtual |
log a message.
| logLevel | The level of the logging message |
| vendorId | The prefixed origin of the message |
| message | The message format string. Review the supported format spcifiers. |
| args | The sequence of variables used to replace the format specifiers in the same order for which they appear in the message |
Implements RF24LogBaseHandler.
Definition at line 26 of file AbstractHandler.cpp.
|
virtual |
set the maximal level of the logged messages.
| logLevel | The verbosity level used to filter which of the logged messages are output. |
Implements RF24LogBaseHandler.
Definition at line 54 of file AbstractHandler.cpp.
|
protectedpure virtual |
write log message to its destination
| logLevel | The level of the logging message |
| vendorId | The prefixed origin of the message |
| message | The message |
| args | The sequence of variables used to replace the format specifiers in the same order for which they appear in the message |
Implemented in RF24LogPrintfParser.
|
protected |
The configured log level used to filter which messages are output.
Definition at line 66 of file AbstractHandler.h.