@Test void getFirstLogEvent() throws IOException { this.tail.initialize(new File(this.tmpDir, "log").toPath(), false); assertNull(this.tail.getFirstLogEvent()); assertNull(this.tail.getFirstLogEvent(LogLevel.ERROR)); this.tail.info("info0"); this.tail.info("info1"); this.tail.warn("warn0"); this.tail.warn("warn1"); this.tail.error("error0"); this.tail.error("error1"); assertEquals("info0", this.tail.getFirstLogEvent().getMessage()); assertEquals("info0", this.tail.getFirstLogEvent(LogLevel.TRACE).getMessage()); assertEquals("info0", this.tail.getFirstLogEvent(LogLevel.INFO).getMessage()); assertEquals("warn0", this.tail.getFirstLogEvent(LogLevel.WARN).getMessage()); assertEquals("error0", this.tail.getFirstLogEvent(LogLevel.ERROR).getMessage()); }
@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);  }