@Test void getModifiedLog() throws IOException { this.tail.initialize(new File(this.tmpDir, "log").toPath(), false); this.tail.info("info"); this.tail.close(); this.tail.initialize(new File(this.tmpDir, "log").toPath(), true); assertEquals("info", this.tail.getLogEvent(0).getMessage()); try (FileOutputStream fw = new FileOutputStream(this.tail.logFile, false)) { fw.flush(); } assertNull(this.tail.getLogEvent(0)); }
@Override public void initialize(Path path, boolean readonly) throws IOException { super.initialize(path, StandardCharsets.UTF_8, readonly); }
XStreamFileLoggerTail extends AbstractTextFileLoggerTail { @Override public void initialize(Path path, boolean readonly) throws IOException { super.initialize(path, StandardCharsets.UTF_8, readonly); } }
XStreamFileLoggerTail extends AbstractTextFileLoggerTail { @Override public void initialize(Path path, boolean readonly) throws IOException { super.initialize(path, StandardCharsets.UTF_8, readonly); }  }
XStreamFileLoggerTail extends AbstractTextFileLoggerTail { @Override public void initialize(Path path, boolean readonly) throws IOException { super.initialize(path, StandardCharsets.UTF_8, readonly); }  @Override void initialize(Path path, boolean readonly); static boolean exist(Path path); }
XStreamFileLoggerTail extends AbstractTextFileLoggerTail { @Override public void initialize(Path path, boolean readonly) throws IOException { super.initialize(path, StandardCharsets.UTF_8, readonly); }  @Override void initialize(Path path, boolean readonly); static boolean exist(Path path);  }