31 if (isLevelEnabled(logLevel))
33 write(logLevel, vendorId, message, args);
39 #if defined (ARDUINO_ARCH_AVR)
41 const __FlashStringHelper *vendorId,
42 const __FlashStringHelper *message,
45 if (isLevelEnabled(logLevel))
47 write(logLevel, vendorId, message, args);
61 bool RF24LogAbstractHandler::isLevelEnabled(uint8_t logLevel)
abstract class that allows custom handlers agnostic to any output stream APIs
void log(uint8_t logLevel, const char *vendorId, const char *message, va_list *args)
log a message.
RF24LogAbstractHandler()
Sets log level to INFO upon instantiation.
virtual void write(uint8_t logLevel, const char *vendorId, const char *message, va_list *args)=0
void setLogLevel(uint8_t logLevel)