This commit is contained in:
Chayapak 2023-07-22 12:40:40 +07:00
parent 3a6c1a0192
commit 58f9a40cb2

View file

@ -81,7 +81,7 @@ public class FileLoggerUtilities {
public static void makeNewLogFile() throws IOException {
currentLogDate = LocalDate.now();
Files.createFile(logPath);
if (!Files.exists(logPath)) Files.createFile(logPath);
logWriter = Files.newBufferedWriter(logPath, StandardOpenOption.APPEND);
logWriter.write(currentLogDate.toString() + '\n');