code: @Override
      public synchronized void write(final Event event) throws IOException
      {
          if (!acceptsEvents) {
              log.warn("Writer not ready, discarding event: {}", event);
              return;
          }
  
          delegate.write(event);
          uncommittedWriteCount++;
  
          commitIfNeeded();
      }
docs: Write an Event via the delegate writer
  
  @param event the Event to write
  @throws IOException as thrown by the delegate writer