Any person witnessing a violation,of a city ordinance by another person may appear before the municipal court and there swear out a complaint for said violation. Upon the signing under oath of said complaint by said complainant a warrant may be issued by the municipal court, signed by the municipal judge, and directed to the alleged violator to be and appear in said court to answer the charges as contained in said complaint.