public static LogWriter createLogWriter(final Properties properties){
  Properties nonDefault=properties;
  if (nonDefault == null) {
    nonDefault=new Properties();
  }
  DistributedTestUtils.addHydraProperties(nonDefault);
  DistributionConfig dc=new DistributionConfigImpl(nonDefault);
  LogWriter logger=LogWriterFactory.createLogWriterLogger(false,false,dc,false);
  nonDefault.put(DistributionConfig.LOG_WRITER_NAME,logger);
  return logger;
}

public static LogWriter createLogWriter ( final Properties properties ) { Properties nonDefault = properties ; if ( nonDefault == null ) { nonDefault = new Properties ( ) ; } DistributedTestUtils . addHydraProperties ( nonDefault ) ; DistributionConfig dc = new DistributionConfigImpl ( nonDefault ) ; LogWriter logger = LogWriterFactory . createLogWriterLogger ( false , false , dc , false ) ; nonDefault . put ( DistributionConfig . LOG_WRITER_NAME , logger ) ; return logger ; }
creates a new logwriter and adds it to the config properties . the config can then be used to connect to distributedsystem , thus providing early access to the logwriter before connecting . this call does not connect to the distributedsystem . it simply creates and returns the logwriter that will eventually be used by the distributedsystem that connects using config .
