use logfile for all platforms