def METHOD_NAME(self, request, _):
    """Set log level.
    Args:
        request (SetLogLevelRequest): The grpc request object.
        _ (object): Context of the request.
    Returns:
        SetLogLevelReply: The SetLogLevelReply grpc object.
    """
    err_msg = ''
    try:
        LOGGER.info('Setting log level, log_level = %s',
                    request.log_level)
        logger.set_logger_level(logger.LOGLEVELS[request.log_level])
    except Exception as e:  # pylint: disable=broad-except
        LOGGER.exception(e)
        err_msg = str(e)
    is_success = not err_msg
    return server_pb2.SetLogLevelReply(is_success=is_success,
                                       error_message=err_msg)