Section
10318 establishes consular officers’ responsibilities in discharging seamen and the seamen’s right to wages when discharged and when incapacitated by illness or injury. It also requires a master to record in the official logbook all matters for which deductions are to be made from seamen’s wages.