A deduction from wages of the seaman is permitted only if the deduction appears in the account of the seaman required to be delivered under
section 10310 of this title, except for matters arising after delivery of the account, in which case a supplementary account is required. During a voyage, the master shall record in the official logbook the matters about which deductions are to be made with the amounts of the deductions. The entries shall be made as the matters occur. The master shall produce the official logbook at the time of payment of wages, and also before a competent authority on the hearing of any complaint or question about the payment of wages.