logging object fields if deleting, logging old object version if updating