fixed logging option

now it records what it was doing in the log file, and doesn't put it all
on one line.