#ifndef DOUGH_LOGGER_H #define DOUGH_LOGGER_H #define LOGGER_PREFIX_BUFLEN 16 #define LOGGER_PREFIX_FORMAT "%10s | " #include #include #include /** * This class provides an interface for logging data in a structured * manner to the serial console. */ class DoughLogger { public: DoughLogger(const char *section); void log(const char *fmt, ...); private: const char *_section; }; #endif