def METHOD_NAME(self, MsgData):
    if not self.pluginconf.pluginConf["NXPExtendedErrorCode"]:
        return
    if MsgData == self.previousExtendedErrorCode and self.previousEEC_time + 60 > time.time():
        # Avoid to log multiple time the same extended erro
        return
    self.previousExtendedErrorCode = MsgData
    self.previousEEC_time = time.time()
    StatusMsg = ""
    if MsgData in ZCL_EXTENDED_ERROR_CODES:
        StatusMsg = ZCL_EXTENDED_ERROR_CODES[MsgData]
    context = {
        "Error code": "TRANS-PROTO-01",
        "ExtendedErrorCode": MsgData,
        "ExtendedError": StatusMsg,
        "nPDU": self.npdu,
        "aPDU": self.apdu,
    }
    if self.firmware_with_8012:
        # We have a 31e firmware or above. We are not expecting extensive Extended Error code, so they will be logged
        self.logging_proto("Error", "NXP_Extended_Error_Code - Extended Error Code: [%s] %s" % (MsgData, StatusMsg), _context=context)
    else:
        self.logging_proto(
            "Log",
            "NXP_Extended_Error_Code - Extended Error Code: [%s] %s nPDU:%s aPDU: %s" % (MsgData, StatusMsg, self.npdu, self.apdu),
        )