Fix up the logging infrastructure so that the .dat and .log files are again written.