Added file logging.
Added force file synchronization, to ensure that the data cache is
written to the file system.