If any person rafting or floating timber or logs in a stream shall permit damage by such logs or timber to be done a bridge built at public expense, he shall be liable therefor; and the damages may be recovered by suit against him, and the timber or logs causing the damage may be seized and sold therefor.