Updating the log4j to write to file