Add TAG_DEV

This commit is contained in:
fvanroie 2021-02-21 20:52:21 +01:00
parent d288059035
commit 0c695f6c8a

View File

@ -22,8 +22,7 @@ void debugStart(void);
void debugStop(void);
/* ===== Special Event Processors ===== */
void debugLvglLogEvent(lv_log_level_t level, const char *file, uint32_t line, const char *funcname,
const char *descr);
void debugLvglLogEvent(lv_log_level_t level, const char* file, uint32_t line, const char* funcname, const char* descr);
void debugPrintHaspHeader(Print* output);
void debugStartSyslog(void);
void debugStopSyslog(void);
@ -31,14 +30,38 @@ void debugStopSyslog(void);
#else
#include <iostream>
#define LOG_FATAL(x, ...) printf(__VA_ARGS__); std::cout << std::endl; fflush(stdout)
#define LOG_ERROR(x, ...) printf(__VA_ARGS__); std::cout << std::endl; fflush(stdout)
#define LOG_WARNING(x, ...) printf(__VA_ARGS__); std::cout << std::endl; fflush(stdout)
#define LOG_NOTICE(x, ...) printf(__VA_ARGS__); std::cout << std::endl; fflush(stdout)
#define LOG_TRACE(x, ...) printf(__VA_ARGS__); std::cout << std::endl; fflush(stdout)
#define LOG_VERBOSE(x, ...) printf(__VA_ARGS__); std::cout << std::endl; fflush(stdout)
#define LOG_DEBUG(x, ...) printf(__VA_ARGS__); std::cout << std::endl; fflush(stdout)
#define LOG_INFO(x, ...) printf(__VA_ARGS__); std::cout << std::endl; fflush(stdout)
#define LOG_FATAL(x, ...) \
printf(__VA_ARGS__); \
std::cout << std::endl; \
fflush(stdout)
#define LOG_ERROR(x, ...) \
printf(__VA_ARGS__); \
std::cout << std::endl; \
fflush(stdout)
#define LOG_WARNING(x, ...) \
printf(__VA_ARGS__); \
std::cout << std::endl; \
fflush(stdout)
#define LOG_NOTICE(x, ...) \
printf(__VA_ARGS__); \
std::cout << std::endl; \
fflush(stdout)
#define LOG_TRACE(x, ...) \
printf(__VA_ARGS__); \
std::cout << std::endl; \
fflush(stdout)
#define LOG_VERBOSE(x, ...) \
printf(__VA_ARGS__); \
std::cout << std::endl; \
fflush(stdout)
#define LOG_DEBUG(x, ...) \
printf(__VA_ARGS__); \
std::cout << std::endl; \
fflush(stdout)
#define LOG_INFO(x, ...) \
printf(__VA_ARGS__); \
std::cout << std::endl; \
fflush(stdout)
/* json keys used in the configfile */
// const char FP_CONFIG_STARTPAGE[] PROGMEM = "startpage";
@ -92,8 +115,7 @@ bool debugSetConfig(const JsonObject &settings);
// void debugPrintSuffix(int level, Print * _logOutput);
// void debugSendOuput(const char * buffer);
enum
{
enum {
TAG_MAIN = 0,
TAG_HASP = 1,
TAG_ATTR = 2,
@ -101,6 +123,7 @@ enum
TAG_OOBE = 4,
TAG_HAL = 5,
TAG_DRVR = 6,
TAG_DEV = 7,
TAG_DEBG = 10,
TAG_TELN = 11,