#include <stdio.h>
Macros | |
#define | _ESPLOGLEVEL_ 1 |
#define | LOGERROR(x) if(_ESPLOGLEVEL_>0) { Serial.print("[WiFiEsp] ", MSG_TYPE_SYSTEM); Serial.println(x, MSG_TYPE_SYSTEM); } |
#define | LOGERROR1(x, y) if(_ESPLOGLEVEL_>2) { Serial.print("[WiFiEsp] ", MSG_TYPE_SYSTEM); Serial.print(x, MSG_TYPE_SYSTEM); Serial.print(" ", MSG_TYPE_SYSTEM); Serial.println(y, MSG_TYPE_SYSTEM); } |
#define | LOGWARN(x) if(_ESPLOGLEVEL_>1) { Serial.print("[WiFiEsp] ", MSG_TYPE_SYSTEM); Serial.println(x, MSG_TYPE_SYSTEM); } |
#define | LOGWARN1(x, y) if(_ESPLOGLEVEL_>2) { Serial.print("[WiFiEsp] ", MSG_TYPE_SYSTEM); Serial.print(x, MSG_TYPE_SYSTEM); Serial.print(" ", MSG_TYPE_SYSTEM); Serial.println(y, MSG_TYPE_SYSTEM); } |
#define | LOGINFO(x) if(_ESPLOGLEVEL_>2) { Serial.print("[WiFiEsp] ", MSG_TYPE_SYSTEM); Serial.println(x, MSG_TYPE_SYSTEM); } |
#define | LOGINFO1(x, y) if(_ESPLOGLEVEL_>2) { Serial.print("[WiFiEsp] ", MSG_TYPE_SYSTEM); Serial.print(x, MSG_TYPE_SYSTEM); Serial.print(" ", MSG_TYPE_SYSTEM); Serial.println(y, MSG_TYPE_SYSTEM); } |
#define | LOGDEBUG() if(_ESPLOGLEVEL_>3) { Serial.println(MSG_TYPE_SYSTEM); } |
#define | LOGDEBUG(x) if(_ESPLOGLEVEL_>3) { Serial.setForcedType(true, MSG_TYPE_SYSTEM); Serial.println(x); Serial.setForcedType(false, MSG_TYPE_SYSTEM);} |
#define | LOGDEBUG0(x) if(_ESPLOGLEVEL_>3) { Serial.setForcedType(true, MSG_TYPE_SYSTEM);Serial.print(x);Serial.setForcedType(false, MSG_TYPE_SYSTEM); } |
#define | LOGDEBUG1(x, y) if(_ESPLOGLEVEL_>3) { Serial.setForcedType(true, MSG_TYPE_SYSTEM);Serial.print(x); Serial.print(" "); Serial.println(y, MSG_TYPE_SYSTEM);Serial.setForcedType(false, MSG_TYPE_SYSTEM); } |
#define | LOGDEBUG2(x, y, z) if(_ESPLOGLEVEL_>3) { Serial.setForcedType(true, MSG_TYPE_SYSTEM);Serial.print(x); Serial.print(" "); Serial.print(y); Serial.print(" "); Serial.println(z);Serial.setForcedType(false, MSG_TYPE_SYSTEM); } |
#define _ESPLOGLEVEL_ 1 |
#define LOGDEBUG | ( | ) | if(_ESPLOGLEVEL_>3) { Serial.println(MSG_TYPE_SYSTEM); } |
#define LOGDEBUG | ( | x | ) | if(_ESPLOGLEVEL_>3) { Serial.setForcedType(true, MSG_TYPE_SYSTEM); Serial.println(x); Serial.setForcedType(false, MSG_TYPE_SYSTEM);} |
#define LOGDEBUG0 | ( | x | ) | if(_ESPLOGLEVEL_>3) { Serial.setForcedType(true, MSG_TYPE_SYSTEM);Serial.print(x);Serial.setForcedType(false, MSG_TYPE_SYSTEM); } |
#define LOGDEBUG1 | ( | x, | |
y | |||
) | if(_ESPLOGLEVEL_>3) { Serial.setForcedType(true, MSG_TYPE_SYSTEM);Serial.print(x); Serial.print(" "); Serial.println(y, MSG_TYPE_SYSTEM);Serial.setForcedType(false, MSG_TYPE_SYSTEM); } |
#define LOGDEBUG2 | ( | x, | |
y, | |||
z | |||
) | if(_ESPLOGLEVEL_>3) { Serial.setForcedType(true, MSG_TYPE_SYSTEM);Serial.print(x); Serial.print(" "); Serial.print(y); Serial.print(" "); Serial.println(z);Serial.setForcedType(false, MSG_TYPE_SYSTEM); } |
#define LOGERROR | ( | x | ) | if(_ESPLOGLEVEL_>0) { Serial.print("[WiFiEsp] ", MSG_TYPE_SYSTEM); Serial.println(x, MSG_TYPE_SYSTEM); } |
#define LOGERROR1 | ( | x, | |
y | |||
) | if(_ESPLOGLEVEL_>2) { Serial.print("[WiFiEsp] ", MSG_TYPE_SYSTEM); Serial.print(x, MSG_TYPE_SYSTEM); Serial.print(" ", MSG_TYPE_SYSTEM); Serial.println(y, MSG_TYPE_SYSTEM); } |
#define LOGINFO | ( | x | ) | if(_ESPLOGLEVEL_>2) { Serial.print("[WiFiEsp] ", MSG_TYPE_SYSTEM); Serial.println(x, MSG_TYPE_SYSTEM); } |
#define LOGINFO1 | ( | x, | |
y | |||
) | if(_ESPLOGLEVEL_>2) { Serial.print("[WiFiEsp] ", MSG_TYPE_SYSTEM); Serial.print(x, MSG_TYPE_SYSTEM); Serial.print(" ", MSG_TYPE_SYSTEM); Serial.println(y, MSG_TYPE_SYSTEM); } |
#define LOGWARN | ( | x | ) | if(_ESPLOGLEVEL_>1) { Serial.print("[WiFiEsp] ", MSG_TYPE_SYSTEM); Serial.println(x, MSG_TYPE_SYSTEM); } |
#define LOGWARN1 | ( | x, | |
y | |||
) | if(_ESPLOGLEVEL_>2) { Serial.print("[WiFiEsp] ", MSG_TYPE_SYSTEM); Serial.print(x, MSG_TYPE_SYSTEM); Serial.print(" ", MSG_TYPE_SYSTEM); Serial.println(y, MSG_TYPE_SYSTEM); } |