def METHOD_NAME(mocker: MockerFixture) -> None:
    logger = logging.getLogger(_logging_event_handler.__name__)
    datagram_handler = DatagramHandler("127.0.0.1", DATAGRAM_PORT)
    datagram_handler.setLevel(logging.NOTSET)
    logger.addHandler(datagram_handler)
    logger.isEnabledFor = lambda _level: True
    mocker.patch.object(_logging_event_handler, "logger", logger)