SPSP
Simple publish-subscribe protocol. Connects low power IoT clients to MQTT.
All Classes Files Functions Variables Typedefs Enumerations
Macros
testing/spsp/logger.hpp File Reference

Logger for testing. More...

#include <cstdio>
Include dependency graph for testing/spsp/logger.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SPSP_LOGE(fmt, ...)   fprintf(stderr, "\033[0;31m[E] %s: " fmt "\n\033[0m", SPSP_LOG_TAG, ##__VA_ARGS__)
 
#define SPSP_LOGW(fmt, ...)   fprintf(stderr, "\033[0;33m[W] %s: " fmt "\n\033[0m", SPSP_LOG_TAG, ##__VA_ARGS__)
 
#define SPSP_LOGI(fmt, ...)   fprintf(stderr, "\033[0;36m[I] %s: " fmt "\n\033[0m", SPSP_LOG_TAG, ##__VA_ARGS__)
 
#define SPSP_LOGD(fmt, ...)   fprintf(stderr, "\033[0;34m[D] %s: " fmt "\n\033[0m", SPSP_LOG_TAG, ##__VA_ARGS__)
 

Detailed Description

Logger for testing.

Author
Dávid Benko (david.nosp@m.benk.nosp@m.o@dav.nosp@m.idbe.nosp@m.nko.d.nosp@m.ev)

Definition in file testing/spsp/logger.hpp.