Browse Source

change json log format

master
filesite 6 months ago
parent
commit
1365349358
  1. 4
      monitor.mjs

4
monitor.mjs

@ -117,7 +117,7 @@ class Monitor { @@ -117,7 +117,7 @@ class Monitor {
//写入JSON格式的log
logFile = path.resolve(_self.systemLogDir) + '/json_stats.log';
let logData = {
"time": currentTime,
"timestamp": common.getTimestamp(),
"url": task.url,
"status": taskRes.task.status
};
@ -131,7 +131,7 @@ class Monitor { @@ -131,7 +131,7 @@ class Monitor {
//写入JSON格式的log
logFile = path.resolve(_self.systemLogDir) + '/json_stats.log';
let logData = {
"time": currentTime,
"timestamp": common.getTimestamp(),
"url": task.url,
"status": task.status
};

Loading…
Cancel
Save