(a) All judicial officers shall, immediately upon the sentence of any person to hard labor for any county, report in writing to the judge of probate of the county for which such sentence is made, the name of such person, the length of his sentence, the date of its commencement and the amount of costs. Any judicial officer presiding over a court that has a clerk may order such report to be made by such clerk.
(b) Any judicial officer or clerk who fails to report in writing to the judge of probate, as required by law, the name of any person sentenced to hard labor for the county, length of such sentence, the date of its commencement and the amount of the costs therein must, on conviction, be fined not less than $25.00.