logy runs once and logs all script output to a file