code: public synchronized void addSyncHandler(SynchronousHandler syncHandler) {
  		// Send messages from EMQ to synchronous handler when it subscribes to
  		// receive messages
  		if (earlyMessageQueue != null && earlyMessageQueue.size() != 0
  				&& !synchronousHandlerSet.contains(syncHandler)) {
  			for (Object message : earlyMessageQueue.toArray()) {
  				if (message != null){
  					syncHandler.synchronousWrite(message);
  				}
  			}
  		}
  
  		Set<SynchronousHandler> synchronousHandlerSetCopy = new HashSet<SynchronousHandler>(synchronousHandlerSet);
  		synchronousHandlerSetCopy.add(syncHandler);
  		Tr.event(tc, "Added Synchronous Handler: " + syncHandler.getHandlerName());
  		synchronousHandlerSet = synchronousHandlerSetCopy;
  	}
docs: Add a synchronousHandler that will receive log events directly
  
  @param syncHandler synchronousHandler that will receive log events directly