Ensure log written once only