SPSP
Simple publish-subscribe protocol. Connects low power IoT clients to MQTT.
All Classes Files Functions Variables Typedefs Enumerations
testing/spsp/logger.hpp
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include <cstdio>
13 
14 #define SPSP_LOGE(fmt, ...) fprintf(stderr, "\033[0;31m[E] %s: " fmt "\n\033[0m", SPSP_LOG_TAG, ##__VA_ARGS__)
15 #define SPSP_LOGW(fmt, ...) fprintf(stderr, "\033[0;33m[W] %s: " fmt "\n\033[0m", SPSP_LOG_TAG, ##__VA_ARGS__)
16 #define SPSP_LOGI(fmt, ...) fprintf(stderr, "\033[0;36m[I] %s: " fmt "\n\033[0m", SPSP_LOG_TAG, ##__VA_ARGS__)
17 #define SPSP_LOGD(fmt, ...) fprintf(stderr, "\033[0;34m[D] %s: " fmt "\n\033[0m", SPSP_LOG_TAG, ##__VA_ARGS__)