Criminal contempt may be punished summarily if a judge or magistrate judge certifies that he saw or heard the conduct constituting the contempt and that it was committed in the actual presence of the court. An order of contempt shall recite the facts and shall be signed by the judge or magistrate judge and entered of record. Contempt prosecuted under this section shall be punishable by imprisonment of not more than thirty days in the county jail or a fine not exceeding one hundred dollars, or both.
SDCL 23A-38-1