Fixing the logs to file.