A Magistrate authorizing under section 167, Cr.P.C detention of accused in custody of Police________?

A Magistrate authorizing under section 167, Cr.P.C detention of accused in custody of Police________?

A. Needs nothing for authorization to be recorded
B. Shall record his reasons for so doing
C. Needs to deal the matter upon his mode to record the reason or not
D. None of above