modify log4 function and add data trace function
This commit is contained in:
@@ -1328,6 +1328,7 @@ void print_monitor(const monitor* mon) {
|
||||
printf("Terminal Connect: %s\n", is_empty(mon->terminal_connect) ? "N/A" : mon->terminal_connect);
|
||||
printf("Timestamp: %s\n", is_empty(mon->timestamp) ? "N/A" : mon->timestamp);
|
||||
printf("Status: %s\n", is_empty(mon->status) ? "N/A" : mon->status);
|
||||
printf("Log Level: %d\n", mon->log_level);
|
||||
}
|
||||
|
||||
// 打印 terminal 结构体信息
|
||||
@@ -1346,6 +1347,7 @@ void print_terminal(const terminal* tmnl) {
|
||||
printf("Address: %s\n", is_empty(tmnl->addr_str) ? "N/A" : tmnl->addr_str);
|
||||
printf("Port: %s\n", is_empty(tmnl->port) ? "N/A" : tmnl->port);
|
||||
printf("Timestamp: %s\n", is_empty(tmnl->timestamp) ? "N/A" : tmnl->timestamp);
|
||||
printf("Log Level: %d\n", tmnl->log_level);
|
||||
|
||||
// 打印监测点信息,如果监测点字段为空,则打印 N/A
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user