We would write it up after the flight and leave it open. An engineer will then sign it off and close the defect.
Where I used to work we operated to ports with no engineering support and had a procedure for the captain to release the aircraft to service following specific pilot maintenance actions. I've never worked anywhere where the captain can just sign off a defect log on a whim, no matter how inconsequential the defect was.