def setup(config_root='<STR_LIT>'):
config = _load_config(root=config_root)<EOL>logging_config = config.get('<STR_LIT>', {}).get('<STR_LIT>', {}).copy()<EOL>log_level = logging_config.pop('<STR_LIT>', '<STR_LIT>').upper()<EOL>log_handlers = logging_config.pop('<STR_LIT>', ['<STR_LIT>'])<EOL>ulogger.setup_logging(<EOL>progname='<STR_LIT>', level=log_level, handlers=log_handlers,<EOL>**logging_config)<EOL>return config<EOL>
Service configuration and logging setup.

Configuration defined in ``gordon-user.toml`` will overwrite
``gordon.toml``.

Args:
    config_root (str): Where configuration should load from,
        defaults to current working directory.
Returns:
    A dict for Gordon service configuration.