Move save and submit logs to events