Fix logging, we append log file instead rewriting now