The officer, after taking possession of such animals, or implements, or other property, pursuant to the preceding section, shall apply to the magistrate before whom complaint is made against the offender violating such provision of law, for the order next hereinafter mentioned, and shall make and file an affidavit with such magistrate, stating therein the name of the offender charged in such compl