|
|
@@ -46,7 +46,7 @@ public class CommonLogTask { |
|
|
|
//获取记录ID文件 |
|
|
|
boolean idFileExist = FileUtil.exist(LOG_RECORD_ADDRESS + LOG_ID_FILE); |
|
|
|
if (!idFileExist){ |
|
|
|
FileUtil.newFile(LOG_RECORD_ADDRESS + LOG_ID_FILE); |
|
|
|
FileUtil.touch(LOG_RECORD_ADDRESS + LOG_ID_FILE); |
|
|
|
} |
|
|
|
FileReader fileReader = new FileReader(LOG_RECORD_ADDRESS + LOG_ID_FILE); |
|
|
|
String result = fileReader.readString(); |
|
|
@@ -94,7 +94,7 @@ public class CommonLogTask { |
|
|
|
boolean fileExist = FileUtil.exist(fileName); |
|
|
|
if (!fileExist){ |
|
|
|
//不存在则创建当天日志文件 |
|
|
|
FileUtil.newFile(fileName); |
|
|
|
FileUtil.touch(fileName); |
|
|
|
} |
|
|
|
//写入通用规则 |
|
|
|
FileWriter writer = new FileWriter(LOG_RECORD_ADDRESS + LOG_FILE); |
|
|
|