A direct contempt may be punished summarily, for which an order shall be made reciting the facts as occurring in the immediate view and presence of the court or officer, and adjudging the person proceeded against to be guilty of a contempt, and that the person be punished as therein specified.