code: func getPlugin(name string, mode int) (Creator, error) {
  	p, err := pluginGetter.Get(name, extName, mode)
  	if err != nil {
  		return nil, fmt.Errorf("error looking up logging plugin %s: %v", name, err)
  	}
  
  	client, err := makePluginClient(p)
  	if err != nil {
  		return nil, err
  	}
  	return makePluginCreator(name, client, p.ScopedPath), nil
  }
docs: // GetDriver returns a logging driver by its name.
  // If the driver is empty, it looks for the local driver.