code: private void startLogScheduler() {
      this.logScheduler.scheduleAtFixedRate(
          new Runnable() {
            @Override
            public void run() {
              CLRBufferedLogHandler.this.logAll();
            }
          }, 0, LOG_SCHEDULE_PERIOD, TimeUnit.SECONDS);
    }
docs: Starts a thread to flush the log buffer on an interval.
  <p>
  This will ensure that logs get flushed periodically, even
  if the log buffer is not full.