Refactor to more generic start_logs function.