If any person commits any contempt of Court before the judge sitting in Court or in chambers, it shall be lawful for the judge to punish the person in a summary manner by a fine not exceeding $500, or by commitment to the correctional facility for any period not exceeding 3 months.