RF24Log  0.1.3
Unified logging library
Public Member Functions | List of all members
RF24Logging Class Reference

This is the end-user's access point into the world of logging messages. More...

#include <RF24Logging.h>

Public Member Functions

 RF24Logging ()
 Initializes the handler to nullptr.
 
void setHandler (RF24LogBaseHandler *handler)
 set the instance's handler More...
 
void log (uint8_t logLevel, const char *vendorId, const char *message,...)
 output a log message of any level More...
 

Detailed Description

This is the end-user's access point into the world of logging messages.

Definition at line 92 of file RF24Logging.h.

Member Function Documentation

◆ log()

void RF24Logging::log ( uint8_t  logLevel,
const char *  vendorId,
const char *  message,
  ... 
)

output a log message of any level

Parameters
logLevelthe level of the logging message
vendorIdA scoping identity of the message's origin
messageThe message format string. Review the supported format spcifiers.
...the sequence of variables used to replace the format specifiers in the same order for which they appear in the message

Definition at line 32 of file RF24Logging.cpp.

◆ setHandler()

void RF24Logging::setHandler ( RF24LogBaseHandler handler)

set the instance's handler

Parameters
handlerThe log handler where the messages will be redirected.
Examples
AllLogLevels.ino, DualStream.ino, and gettingStarted.ino.

Definition at line 25 of file RF24Logging.cpp.


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