def METHOD_NAME(self):
    emitter_provider_mock = Mock(spec=LoggerProvider)
    emitter_mock = APIGetLogger(
        __name__, logger_provider=emitter_provider_mock
    )
    logger = get_logger(
        level=logging.ERROR, logger_provider=emitter_provider_mock
    )
    with self.assertLogs(level=logging.WARNING):
        logger.warning("Warning message test custom log level")
    # Make sure any log with level < ERROR is ignored
    self.assertEqual(emitter_mock.emit.call_count, 0)
    with self.assertLogs(level=logging.ERROR):
        logger.error("Mumbai, we have a major problem")
    with self.assertLogs(level=logging.CRITICAL):
        logger.critical("No Time For Caution")
    self.assertEqual(emitter_mock.emit.call_count, 2)