def METHOD_NAME(loggerLevel, isSuperiorTo, logRecordLevel):
    """
    Set sublog level: check whether a log record should be displayed
    """
    capturedBackend, log, sublog = gLoggerReset()
    levels = gLogger.getAllPossibleLevels()
    gLogger.setLevel("notice")
    log.setLevel("warn")
    sublog.setLevel(loggerLevel)
    # convert level name into its integer value
    logRecordLevelValue = LogLevels.getLevelValue(logRecordLevel)
    res = sublog._createLogRecord(logRecordLevelValue, "message", "")
    # clean the log to remove unecessary information
    logstring = cleaningLog(capturedBackend.getvalue())
    # if logLevel is superior to logRecordLevel then:
    # - log record should not appear
    # - shown should return False as the log doesn't appear
    # - value returned by createLogRecord should be False too
    isLoggerLvlSupToLogRecordLvl = LogLevels.getLevelValue(loggerLevel) > logRecordLevelValue
    assert isLoggerLvlSupToLogRecordLvl == isSuperiorTo
    if LogLevels.getLevelValue(loggerLevel) > logRecordLevelValue:
        assert not sublog.shown(logRecordLevel)
        assert not res
        assert logstring == ""
    else:
        assert sublog.shown(logRecordLevel)
        assert res
        assert logstring == f"Framework/log/sublog {logRecordLevel.upper()}: message\n"
    capturedBackend.truncate(0)
    capturedBackend.seek(0)