RF24Log
0.1.3
Unified logging library
|
A log handler implementation which outputs log messages to a stream. More...
#include <ArduinoPrintLogger.h>
Public Member Functions | |
ArduinoPrintLogger (Print *stream) | |
instance constructor More... | |
![]() | |
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 | |
void | appendTimestamp () |
output a timestamp | |
void | appendChar (char data, uint16_t depth=1) |
append a character a number of times More... | |
void | appendInt (long data) |
append a signed (+/-) number More... | |
void | appendUInt (unsigned long data, uint8_t base=10) |
append an ‘unsigned’ (only +) number More... | |
void | appendDouble (double data, uint8_t precision=2) |
append a floating point number More... | |
void | appendStr (const char *data) |
append a c-string More... | |
![]() | |
void | write (uint8_t logLevel, const char *vendorId, const char *message, va_list *args) |
![]() | |
void | appendLogLevel (uint8_t logLevel) |
output a description of the log level More... | |
void | descTimeLevel (uint8_t logLevel) |
Automate the output of the header' timestamp and level description. More... | |
void | appendFormat (FormatSpecifier *fmt_parser, va_list *args) |
output a data according to the format specifier More... | |
Protected Attributes | |
Print * | _stream |
The output stream. | |
![]() | |
uint8_t | _logLevel |
A log handler implementation which outputs log messages to a stream.
Definition at line 24 of file ArduinoPrintLogger.h.
ArduinoPrintLogger::ArduinoPrintLogger | ( | Print * | stream | ) |
instance constructor
stream | The output stream to which logging messages are directed. |
Definition at line 21 of file ArduinoPrintLogger.cpp.
|
protectedvirtual |
append a character a number of times
data | The char to use |
depth | The number of times that the data is sequentially output. |
Implements RF24LogAbstractStream.
Definition at line 39 of file ArduinoPrintLogger.cpp.
|
protectedvirtual |
append a floating point number
data | The numeric data |
precision | The number of decimals places to output |
Implements RF24LogAbstractStream.
Definition at line 64 of file ArduinoPrintLogger.cpp.
|
protectedvirtual |
append a signed (+/-) number
data | The numeric data |
Implements RF24LogAbstractStream.
Definition at line 50 of file ArduinoPrintLogger.cpp.
|
protectedvirtual |
append a c-string
data | The c-string data |
Implements RF24LogAbstractStream.
Definition at line 71 of file ArduinoPrintLogger.cpp.
|
protectedvirtual |
append an ‘unsigned’ (only +) number
data | The numeric data |
base | The base counting scheme. Defaults to 10 for decimal counting system |
Implements RF24LogAbstractStream.
Definition at line 57 of file ArduinoPrintLogger.cpp.