|
@@ -2,8 +2,8 @@
|
|
|
* @Author: fuyu
|
|
|
* @Date: 2021-03-23 16:25:59
|
|
|
* @LastEditors: fuyu
|
|
|
- * @LastEditTime: 2021-03-23 17:42:27
|
|
|
- * @FilePath: /202103/code/sql_merge/src/service/log.js
|
|
|
+ * @LastEditTime: 2021-03-25 10:44:11
|
|
|
+ * @FilePath: /sql_merge/src/service/log.js
|
|
|
*/
|
|
|
const fs = require('fs')
|
|
|
const path = require('path');
|
|
@@ -18,6 +18,7 @@ export async function logSum(institution_id, count) {
|
|
|
time: time, institution_id, count,
|
|
|
}
|
|
|
fs.appendFileSync(filePath, JSON.stringify(obj) + '\r\n')
|
|
|
+ fs.writeFileSync(path.join(dirPath, institution_id + '-' + getNowDay() + '.log'), count + '')
|
|
|
}
|
|
|
export async function logSingle(name) {
|
|
|
checkPath(rootPath)
|