好多Log

This commit is contained in:
zogodo
2019-12-10 22:10:06 +08:00
parent afe150ba53
commit b1ecd9c87d
10 changed files with 21 additions and 13 deletions

View File

@@ -1,4 +1,5 @@
#define os_log(format, ...) custom_log("FUNCTION", format, ##__VA_ARGS__)
#include "http_server/web_log.h"
#define os_log(format, ...) custom_log("FUNCTION", format, ##__VA_ARGS__); web_log(format, ##__VA_ARGS__)
#include "TimeUtils.h"

View File

@@ -18,8 +18,10 @@
* <h2><center>&copy; COPYRIGHT 2014 MXCHIP Inc.</center></h2>
******************************************************************************
*/
#define app_log(M, ...) custom_log("APP", M, ##__VA_ARGS__)
#define mqtt_log(M, ...) custom_log("MQTT", M, ##__VA_ARGS__)
#include "http_server/web_log.h"
#define app_log(M, ...) custom_log("APP", M, ##__VA_ARGS__); web_log(M, ##__VA_ARGS__)
#define mqtt_log(M, ...) custom_log("MQTT", M, ##__VA_ARGS__); web_log(M, ##__VA_ARGS__)
#include "main.h"
#include "mico.h"

View File

@@ -34,9 +34,10 @@
#include "SocketUtils.h"
#include "ota_server.h"
#include "url.h"
#include "http_server/web_log.h"
#if OTA_DEBUG
#define ota_server_log(M, ...) custom_log("OTA", M, ##__VA_ARGS__)
#define ota_server_log(M, ...) custom_log("OTA", M, ##__VA_ARGS__); web_log(M, ##__VA_ARGS__)
#else
#define ota_server_log(M, ...)
#endif

View File

@@ -1,4 +1,5 @@
#define os_log(format, ...) custom_log("OTA", format, ##__VA_ARGS__)
#include "http_server/web_log.h"
#define os_log(format, ...) custom_log("OTA", format, ##__VA_ARGS__); web_log(format, ##__VA_ARGS__)
#include "mico.h"
#include "ota_server/ota_server.h"

View File

@@ -1,4 +1,5 @@
#define os_log(format, ...) custom_log("RTC", format, ##__VA_ARGS__)
#include "http_server/web_log.h"
#define os_log(format, ...) custom_log("RTC", format, ##__VA_ARGS__); web_log(format, ##__VA_ARGS__)
#include "main.h"
#include "user_gpio.h"

View File

@@ -1,5 +1,5 @@
#define os_log(format, ...) custom_log("SNTP", format, ##__VA_ARGS__)
#include "http_server/web_log.h"
#define os_log(format, ...) custom_log("SNTP", format, ##__VA_ARGS__); web_log(format, ##__VA_ARGS__)
#include "main.h"
//#include "user_gpio.h"

View File

@@ -1,4 +1,5 @@
#define os_log(format, ...) custom_log("KEY", format, ##__VA_ARGS__)
#include "http_server/web_log.h"
#define os_log(format, ...) custom_log("KEY", format, ##__VA_ARGS__); web_log(format, ##__VA_ARGS__)
#include "main.h"
#include "user_gpio.h"

View File

@@ -1,4 +1,5 @@
#define os_log(format, ...) custom_log("OTA", format, ##__VA_ARGS__)
#include "http_server/web_log.h"
#define os_log(format, ...) custom_log("OTA", format, ##__VA_ARGS__); web_log(format, ##__VA_ARGS__)
#include "TimeUtils.h"
#include "mico.h"

View File

@@ -1,4 +1,5 @@
#define os_log(format, ...) custom_log("UDP", format, ##__VA_ARGS__)
#include "http_server/web_log.h"
#define os_log(format, ...) custom_log("UDP", format, ##__VA_ARGS__); web_log(format, ##__VA_ARGS__)
#include "main.h"
#include "mqtt_server/user_function.h"

View File

@@ -1,7 +1,6 @@
1. AP名拼Mac地址
2. 添加定时任务
3. Web系统日志
4. 往前滑时, 不往下滑
4. 往前滑时, 不往后滑
5. OTA固件升级
6. 登录