RF24Log  0.1.3
Unified logging library
RF24LogDualHandler.h
Go to the documentation of this file.
1 
15 #ifndef SRC_HANDLER_EXT_RF24DUALLOGHANDLER_H_
16 #define SRC_HANDLER_EXT_RF24DUALLOGHANDLER_H_
17 
18 #include "../RF24LogBaseHandler.h"
19 
22 {
23 private:
24  RF24LogBaseHandler *handler1;
25  RF24LogBaseHandler *handler2;
26 
27 public:
28 
35 
36  void log(uint8_t logLevel,
37  const char *vendorId,
38  const char *message,
39  va_list *args);
40 
41  void setLogLevel(uint8_t logLevel);
42 
43 #if defined (ARDUINO_ARCH_AVR)
44  void log(uint8_t logLevel,
45  const __FlashStringHelper *vendorId,
46  const __FlashStringHelper *message,
47  va_list *args);
48 #endif
49 
50 };
51 
52 #endif /* SRC_HANDLER_EXT_RF24DUALLOGHANDLER_H_ */
A base mechanism for handling log messages.
Module to extend the RF24LogBaseHandler mechanism for redirecting to 2 different RF24LogBaseHandler o...
void log(uint8_t logLevel, const char *vendorId, const char *message, va_list *args)
log a message.
RF24LogDualHandler(RF24LogBaseHandler *handler1, RF24LogBaseHandler *handler2)
Instance constructor.
void setLogLevel(uint8_t logLevel)