static Logger createLogger(Namespace namespace) {
    String logConfig = namespace.getString("log_config");
    if (logConfig != null) {
      System.setProperty("logback.configurationFile", logConfig);
    }
    System.setProperty("atomix.log.directory", namespace.getString("log_dir"));
    System.setProperty("atomix.log.level", namespace.getString("log_level"));
    System.setProperty("atomix.log.console.level", namespace.getString("console_log_level"));
    System.setProperty("atomix.log.file.level", namespace.getString("file_log_level"));
    return LoggerFactory.getLogger(AtomixAgent.class);
  }
static Logger createLogger ( Namespace namespace ) { String logConfig = namespace . getString ( "log_config" ) ; if ( logConfig != null ) { System . setProperty ( "logback.configurationFile" , logConfig ) ; } System . setProperty ( "atomix.log.directory" , namespace . getString ( "log_dir" ) ) ; System . setProperty ( "atomix.log.level" , namespace . getString ( "log_level" ) ) ; System . setProperty ( "atomix.log.console.level" , namespace . getString ( "console_log_level" ) ) ; System . setProperty ( "atomix.log.file.level" , namespace . getString ( "file_log_level" ) ) ; return LoggerFactory . getLogger ( AtomixAgent . class ) ; }
Configures and creates a new logger for the given namespace.

@param namespace the namespace from which to create the logger configuration
@return a new agent logger