RF24Log  0.1.3
Unified logging library
Protected Member Functions | List of all members
RF24LogPrintfParser Class Reference

class that holds the RF24Log's in-house printf-like parsing More...

#include <PrintfParser.h>

Inheritance diagram for RF24LogPrintfParser:
RF24LogAbstractHandler RF24LogAbstractStream RF24LogBaseHandler ArduinoPrintLogger NativePrintLogger OStreamLogger

Protected Member Functions

void write (uint8_t logLevel, const char *vendorId, const char *message, va_list *args)
 
- Protected Member Functions inherited from RF24LogAbstractStream
virtual void appendTimestamp ()=0
 output a timestamp
 
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...
 
virtual void appendChar (char data, uint16_t depth=1)=0
 append a character a number of times More...
 
virtual void appendInt (long data)=0
 append a signed (+/-) number More...
 
virtual void appendUInt (unsigned long data, uint8_t base=10)=0
 append an ‘unsigned’ (only +) number More...
 
virtual void appendDouble (double data, uint8_t precision=2)=0
 append a floating point number More...
 
virtual void appendStr (const char *data)=0
 append a c-string More...
 

Additional Inherited Members

- Public Member Functions inherited from RF24LogAbstractHandler
 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 Attributes inherited from RF24LogAbstractHandler
uint8_t _logLevel
 

Detailed Description

class that holds the RF24Log's in-house printf-like parsing

Definition at line 24 of file PrintfParser.h.

Member Function Documentation

◆ write()

void RF24LogPrintfParser::write ( uint8_t  logLevel,
const char *  vendorId,
const char *  message,
va_list *  args 
)
protectedvirtual

write log message to its destination

Parameters
logLevelThe level of the logging message
vendorIdThe prefixed origin of the message
messageThe message
argsThe sequence of variables used to replace the format specifiers in the same order for which they appear in the message

Implements RF24LogAbstractHandler.

Definition at line 99 of file PrintfParser.cpp.


The documentation for this class was generated from the following files: