private String getUpdatedLogPropertiesFileContent() {
		final File propertiesFile = new File(logPropertiesFile);
		final String logRegex = ".*<file>(.*?)</file>.*";
		final String logBackupRegex = ".*<fileNamePattern>(.*?)</fileNamePattern>.*";
		final String logPath = (new File(logFilePath, logFileName)).getPath();
		final String logBackupPath = (new File(logFilePath, logBackupFileName)).getPath();
		
		String fileContent = "";
		try {
			fileContent = new Scanner(propertiesFile, "UTF-8").useDelimiter("\\A").next();
		} catch (FileNotFoundException ex) {
			log.error("Unable to open the logging configuration of the application.\nError: {}", 
					ex.getLocalizedMessage());
		}
		
		String changedContent = fileContent;
		changedContent = replaceInString(logRegex, changedContent, logPath);
		changedContent = replaceInString(logBackupRegex, changedContent, logBackupPath);
		
		// If changedContent equals fileContent, the file doesn't need to be overwritten, so we
		// return null.
		if (changedContent != null && !changedContent.equals(fileContent)) {
			return changedContent;
		} else {
			return null;
		}
	}