When a prisoner is committed to the county jail, it is the duty of the sheriff of such county, in person or by deputy, to report in writing to the clerk of the circuit court of such county, within 10 days next succeeding the commitment, the name of such prisoner, the day of his entering such jail and by what authority and upon what charge committed; and when a prisoner is discharged from, or otherwise leaves such jail, the sheriff shall report to such clerk, within two days next succeeding, the name of such prisoner and by what authority and when he so left or was discharged.
Ala. Code § 14-6-15 (1975)