15 #ifndef SRC_RF24LOGGERS_NATIVEPRINTLOGGER_H_
16 #define SRC_RF24LOGGERS_NATIVEPRINTLOGGER_H_
19 #include "../RF24LogParts/PrintfParser.h"
20 #include "../RF24LogParts/LevelDescriptions.h"
24 #define printf_P printf
40 void appendChar(
char data, uint16_t depth = 1);
42 void appendUInt(
unsigned long data, uint8_t base = 10);
Class to manage logging messages to a printf function pointer.
void appendTimestamp()
output a timestamp
void appendChar(char data, uint16_t depth=1)
append a character a number of times
void appendUInt(unsigned long data, uint8_t base=10)
append an ‘unsigned’ (only +) number
void appendStr(const char *data)
append a c-string
void appendInt(long data)
append a signed (+/-) number
NativePrintLogger()
Construct a new NativePrintLogger object using stdout.
void appendDouble(double data, uint8_t precision=2)
append a floating point number
class that holds the RF24Log's in-house printf-like parsing