public void log(String event,String message){
  boolean eventActive=isEventActive(event);
  if ((this.logging && eventActive && !writers.isEmpty())) {
    try {
      for (      Writer writer : writers.values()) {
        writer.write(message);
        writer.write("\n");
        writer.flush();
      }
    }
 catch (    IOException e) {
      e.printStackTrace();
    }
  }
}

public void log ( String event , String message ) { boolean eventActive = isEventActive ( event ) ; if ( ( this . logging && eventActive && ! writers . isEmpty ( ) ) ) { try { for ( Writer writer : writers . values ( ) ) { writer . write ( message ) ; writer . write ( "\n" ) ; writer . flush ( ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } } }
logs the given message with a newline associated with the given event .
