HOTFIX FIX
This commit is contained in:
parent
2de709c127
commit
3740a9b45f
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, StandardOpenOption.TRUNCATE_EXISTING);
|
logWriter = Files.newBufferedWriter(logPath, StandardCharsets.UTF_8, 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.ISO_8859_1, StandardOpenOption.APPEND);
|
logWriter = Files.newBufferedWriter(logPath, StandardCharsets.UTF_8, StandardOpenOption.APPEND);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void compressLogFile() throws IOException {
|
public static void compressLogFile() throws IOException {
|
||||||
|
|
Loading…
Reference in a new issue