code: public void addEvent(LogEvent event) {
          try {
              write(getString(event));
          } catch (IOException e) {
              e.printStackTrace();
          }
      }
docs: Add a new event
  
  @param event