Fix logging (#67), adapt logfile format