In every case tried summarily by a Magistrate or Bench in which an appeal lies, such Magistrate or Bench shall record the substance of the evidence and also the particulars mentioned in section 263 and shall, before passing any sentence, record a judgment in the case. ...