public int flushLogs() {
   return appLogsWriter.flushAndWait();
 }
 public void addLogRecord(LogRecord record) {
   appLogsWriter.addLogRecordAndMaybeFlush(record);
 }