25#if defined(ARDUINO) && ARDUINO >= 100
28#elif defined(PARTICLE)
36static int const DBG_NONE = -1;
37static int const DBG_ERROR = 0;
38static int const DBG_WARNING = 1;
39static int const DBG_INFO = 2;
40static int const DBG_DEBUG = 3;
41static int const DBG_VERBOSE = 4;
73 void print(
int const debug_level,
const char * fmt, ...);
74 void print(
int const debug_level,
const __FlashStringHelper * fmt, ...);
81 bool _print_debug_label;
82 bool _format_timestamp_on;
84 Stream * _debug_output_stream;
86 void vPrint(
char const * fmt, va_list args);
87 void printTimestamp();
88 void printDebugLabel(
int const debug_level);
89 bool shouldPrint(
int const debug_level)
const;
104# define DEBUG_ERROR(fmt, ...) Debug.print(DBG_ERROR, fmt, ## __VA_ARGS__)
108# define DEBUG_WARNING(fmt, ...) Debug.print(DBG_WARNING, fmt, ## __VA_ARGS__)
112# define DEBUG_INFO(fmt, ...) Debug.print(DBG_INFO, fmt, ## __VA_ARGS__)
116# define DEBUG_DEBUG(fmt, ...) Debug.print(DBG_DEBUG, fmt, ## __VA_ARGS__)
120# define DEBUG_VERBOSE(fmt, ...) Debug.print(DBG_VERBOSE, fmt, ## __VA_ARGS__)
int getDebugMessageLevel()
void setDebugMessageLevel(int const debug_level)
void formatTimestampOff()
void setDebugLevel(int const debug_level)
void setDebugOutputStream(Stream *stream)
void print(int const debug_level, const char *fmt,...)
int getDebugLevel() const