10#define MC_LOG_DEBUG(...) log4MC::vlogf(LOG_DEBUG, __VA_ARGS__)
12#define MC_LOG_DEBUG(...)
16#define MC_LOG_INFO(...) log4MC::vlogf(LOG_INFO, __VA_ARGS__)
18#define MC_LOG_INFO(...)
27 static void vlogf(uint8_t level,
const char *fmt, ...);
28 static void log(uint8_t level,
const char *message);
29 static void debug(
const char *message);
30 static void info(
const char *message);
31 static void info(String message);
32 static void warn(
const char *message);
33 static void error(
const char *message);
34 static void fatal(
const char *message);
37 static void logMessage(uint8_t level,
char *message);
38 static void setLogMask(uint8_t priMask);
39 static uint8_t getLogMask();
42 static bool _connected;
43 static uint8_t _priMask;
44 static WiFiUDP _udpClient;
46 static unsigned int lineNo;
@ connected
Definition MController.h:16
static void log(uint8_t level, const char *message)
Definition log4MC.cpp:85
static void warn(const char *message)
Definition log4MC.cpp:113
static void info(const char *message)
Definition log4MC.cpp:108
static void debug(const char *message)
Definition log4MC.cpp:103
static void fatal(const char *message)
Definition log4MC.cpp:123
static void error(const char *message)
Definition log4MC.cpp:118
static void vlogf(uint8_t level, const char *fmt,...)
Definition log4MC.cpp:60
static void Setup(const char *hostName, MCLoggingConfiguration *config)
Definition log4MC.cpp:3
static void wifiIsConnected(bool connected)
Definition log4MC.cpp:31
Definition MCLoggingConfiguration.h:6