adds a -logfile switch for mirroring all console messages to a file