In all cases of security to keep the peace under this chapter, the court in addition to the orders mentioned in said chapter shall tax the costs against the complainant or defendant, or both, as justice may require, and enter judgment therefor, which may be enforced as judgments for costs in criminal cases, and execution may issue therefor.
R.L.1910, § 5577.