def log_level(request):
    """Log level to use when instantiating a new pycsw server.

    The value for this fixture is retrieved from the `--pycsw.loglevel`
    command-line parameter.

    """

    return request.config.getoption("pycsw_loglevel").upper()