(self, item, exception, response, spider)
return {
            'level': logging.ERROR,
            'msg': ITEMERRORMSG,
            'args': {
                'item': item,
            }
        }
Logs a message when an item causes an error while it is passing
        through the item pipeline.

        .. versionadded:: 2.0
Logs a message when an item causes an error while it is passing
        through the item pipeline.
Logs a message when an item causes an error while it is passing through the item pipeline .
def item_error(self, item, exception, response, spider):
        """Logs a message when an item causes an error while it is passing
        through the item pipeline.

        .. versionadded:: 2.0
        """
        return {
            'level': logging.ERROR,
            'msg': ITEMERRORMSG,
            'args': {
                'item': item,
            }
        }
def item_error ( self , item , exception , response , spider ) : return { 'level' : logging . ERROR , 'msg' : ITEMERRORMSG , 'args' : { 'item' : item , } }