Creates a writer that logs to file. The file is created if it doesn't exist and overwritten if it does.
Creates a writer that logs to the file at filePath, as create does for a File.