15 #ifndef SRC_RF24LOGGERS_OSTREAMLOGGER_H_
16 #define SRC_RF24LOGGERS_OSTREAMLOGGER_H_
19 #include "../RF24LogParts/PrintfParser.h"
20 #include "../RF24LogParts/LevelDescriptions.h"
35 std::ostream* _stream;
43 void appendChar(
char data, uint16_t depth = 1);
45 void appendUInt(
unsigned long data, uint8_t base = 10);
Class to manage logging messages to a ostream based object.
void appendTimestamp()
output a timestamp
void appendChar(char data, uint16_t depth=1)
append a character a number of times
OStreamLogger(std::ostream *stream)
Construct a new OStreamLogger object.
void appendDouble(double data, uint8_t precision=2)
append a floating point number
void appendStr(const char *data)
append a c-string
void appendInt(long data)
append a signed (+/-) number
void appendUInt(unsigned long data, uint8_t base=10)
append an ‘unsigned’ (only +) number
class that holds the RF24Log's in-house printf-like parsing