fix: mabe
This commit is contained in:
parent
783a7a937e
commit
4b16f12623
1 changed files with 2 additions and 2 deletions
|
@ -84,14 +84,14 @@ public class FileLoggerUtilities {
|
||||||
|
|
||||||
if (!Files.exists(logPath)) Files.createFile(logPath);
|
if (!Files.exists(logPath)) Files.createFile(logPath);
|
||||||
|
|
||||||
logWriter = Files.newBufferedWriter(logPath, StandardCharsets.UTF_8, StandardOpenOption.TRUNCATE_EXISTING);
|
logWriter = Files.newBufferedWriter(logPath, StandardCharsets.UTF_16, StandardOpenOption.TRUNCATE_EXISTING);
|
||||||
logWriter.write(currentLogDate.toString() + '\n');
|
logWriter.write(currentLogDate.toString() + '\n');
|
||||||
logWriter.flush();
|
logWriter.flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void openLogFile() throws IOException {
|
public static void openLogFile() throws IOException {
|
||||||
currentLogDate = LocalDate.parse(getLogDate(logPath));
|
currentLogDate = LocalDate.parse(getLogDate(logPath));
|
||||||
logWriter = Files.newBufferedWriter(logPath, StandardCharsets.UTF_8, StandardOpenOption.APPEND);
|
logWriter = Files.newBufferedWriter(logPath, StandardCharsets.UTF_16, StandardOpenOption.APPEND);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void compressLogFile() throws IOException {
|
public static void compressLogFile() throws IOException {
|
||||||
|
|
Loading…
Reference in a new issue