public void initImpl() throws ConfigException {
  if (_handler != null) {
  }
 else   if (_pathHandler != null) {
  }
 else {
    setPath(Paths.get("."));
  }
  if (_formatter != null) {
  }
 else   if (_handler != null && _handler.getFormatter() != null) {
  }
 else {
    _formatter=new PatternFormatter(PatternFormatter.DEFAULT_PATTERN);
  }
  if (_pathHandler != null) {
    _pathHandler.init();
    _handler=_pathHandler;
  }
  if (_handler == null) {
    throw new ConfigException(L.l("<log-handler> requires a configured log handler"));
  }
  if (_level != null) {
    _handler.setLevel(_level);
  }
  if (_formatter != null) {
    _handler.setFormatter(_formatter);
  }
  if (_filter != null) {
    _handler.setFilter(_filter);
  }
  if (_names.size() == 0) {
    _names.add("");
  }
  for (  String name : _names) {
    Logger logger=Logger.getLogger(name);
    if (!(logger instanceof EnvironmentLogger)) {
      if (_handler instanceof AutoCloseable) {
        EnvLoader.addCloseListener((AutoCloseable)_handler);
      }
    }
    logger.addHandler(_handler);
  }
}

public void initImpl ( ) throws ConfigException { if ( _handler != null ) { } else if ( _pathHandler != null ) { } else { setPath ( Paths . get ( "." ) ) ; } if ( _formatter != null ) { } else if ( _handler != null && _handler . getFormatter ( ) != null ) { } else { _formatter = new PatternFormatter ( PatternFormatter . DEFAULT_PATTERN ) ; } if ( _pathHandler != null ) { _pathHandler . init ( ) ; _handler = _pathHandler ; } if ( _handler == null ) { throw new ConfigException ( L . l ( "<log-handler> requires a configured log handler" ) ) ; } if ( _level != null ) { _handler . setLevel ( _level ) ; } if ( _formatter != null ) { _handler . setFormatter ( _formatter ) ; } if ( _filter != null ) { _handler . setFilter ( _filter ) ; } if ( _names . size ( ) == 0 ) { _names . add ( "" ) ; } for ( String name : _names ) { Logger logger = Logger . getLogger ( name ) ; if ( ! ( logger instanceof EnvironmentLogger ) ) { if ( _handler instanceof AutoCloseable ) { EnvLoader . addCloseListener ( ( AutoCloseable ) _handler ) ; } } logger . addHandler ( _handler ) ; } }
should be run with system classloader
