def METHOD_NAME(self, msg):
    # Convert syslog-type l
    syslog_level = msg.get_nla(KtestMsgAttrType.KTEST_MSG_ATTR_LEVEL).u8
    if syslog_level <= 6:
        loglevel = logging.INFO
    else:
        loglevel = logging.DEBUG
    rec = logging.LogRecord(
        self.KTEST_MODULE_NAME,
        loglevel,
        msg.get_nla(KtestMsgAttrType.KTEST_MSG_ATTR_FILE).text,
        msg.get_nla(KtestMsgAttrType.KTEST_MSG_ATTR_LINE).u32,
        "%s",
        (msg.get_nla(KtestMsgAttrType.KTEST_MSG_ATTR_TEXT).text),
        None,
        msg.get_nla(KtestMsgAttrType.KTEST_MSG_ATTR_FUNC).text,
        None,
    )
    rec.created = self._get_record_time(msg)
    logger.handle(rec)