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

Module to extend the RF24LogBaseHandler mechanism for redirecting to 2 different RF24LogBaseHandler objects. More...

#include <RF24LogDualHandler.h>

Inheritance diagram for RF24LogDualHandler:
RF24LogBaseHandler

Public Member Functions

 RF24LogDualHandler (RF24LogBaseHandler *handler1, RF24LogBaseHandler *handler2)
 Instance constructor. More...
 
void log (uint8_t logLevel, const char *vendorId, const char *message, va_list *args)
 log a message. More...
 
void setLogLevel (uint8_t logLevel)
 

Detailed Description

Module to extend the RF24LogBaseHandler mechanism for redirecting to 2 different RF24LogBaseHandler objects.

Examples
DualStream.ino.

Definition at line 21 of file RF24LogDualHandler.h.

Constructor & Destructor Documentation

◆ RF24LogDualHandler()

RF24LogDualHandler::RF24LogDualHandler ( RF24LogBaseHandler handler1,
RF24LogBaseHandler handler2 
)

Instance constructor.

Parameters
handler1An output stream handler
handler2An output stream handler

Definition at line 19 of file RF24LogDualHandler.cpp.

Member Function Documentation

◆ log()

void RF24LogDualHandler::log ( uint8_t  logLevel,
const char *  vendorId,
const char *  message,
va_list *  args 
)
virtual

log a message.

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

Implements RF24LogBaseHandler.

Definition at line 26 of file RF24LogDualHandler.cpp.

◆ setLogLevel()

void RF24LogDualHandler::setLogLevel ( uint8_t  logLevel)
virtual

set the maximal level of the logged messages.

Parameters
logLevelThe verbosity level used to filter which of the logged messages are output.
See also
Review the descriptions in the Log Levels

Implements RF24LogBaseHandler.

Definition at line 42 of file RF24LogDualHandler.cpp.


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